12 lines
224 B
YAML
12 lines
224 B
YAML
|
---
|
||
|
|
||
|
- name: Install ntp
|
||
|
apt: name=ntp state=present
|
||
|
|
||
|
- name: Configure ntp
|
||
|
template: src=ntp.conf.j2 dest=/etc/ntp.conf
|
||
|
notify: Restart ntp
|
||
|
|
||
|
- name: Start the ntp service
|
||
|
service: name=ntp state=started enabled=yes
|