blob: cf964e35161ce0240bcf85129c71cae1a308bc8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
- name: Enable systemd-timesyncd
systemd:
name: systemd-timesyncd.service
enabled: yes
masked: no
state: started
when: "'container' not in ansible_env"
- name: '- when in nspawn'
command: systemctl enable systemd-timesyncd.service
args:
creates: '/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service'
when: "'container' in ansible_env"
# vim: set ts=2 sw=2 et:
|