12 lines
344 B
YAML
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']
|