forked from infra/ansible
15 lines
260 B
YAML
15 lines
260 B
YAML
---
|
|
|
|
- name: Install ntp
|
|
apt: name=ntp state=present
|
|
tags: ntp
|
|
|
|
- name: Configure ntp
|
|
template: src=ntp.conf.j2 dest=/etc/ntp.conf
|
|
notify: Restart ntp
|
|
tags: ntp
|
|
|
|
- name: Start the ntp service
|
|
service: name=ntp state=started enabled=yes
|
|
tags: ntp
|