Files
ansible-role-common/tasks/ntp.yml
Farhad Shahbazi acc8f15e9e initial commit
2016-03-05 16:30:21 +01:00

12 lines
344 B
YAML

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