aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/timesyncd.yml
blob: 32178899780e40d5c758ba8b150972bd7414d142 (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: not chroot
- name: '- when in chroot'
  command: systemctl enable systemd-timesyncd.service
  args:
    creates: '/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service'
  when: chroot

# vim: set ts=2 sw=2 et: