Files
ansible-role-common/tasks/ntp.yml
Daniel A. Maierhofer 5f0def1920 Add --- where missing
2018-03-11 23:36:09 +01:00

9 lines
314 B
YAML

---
- name: ntp - install chrony
package: name=chrony
when: ansible_virtualization_type != 'lxc' or ansible_virtualization_role == 'host'
- name: ntp - run and enable chrony
service: name=chrony state=started enabled=yes
when: ansible_virtualization_type != 'lxc' or ansible_virtualization_role == 'host'