Files
ansible-role-common/tasks/ntp.yml
Farhad Shahbazi 3ed4105c79 tag cleanups
2016-11-24 16:25:58 +01:00

10 lines
291 B
YAML

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