ansible-config/roles/ntp-server/tasks/main.yml
2017-02-05 13:47:57 +01:00

22 lines
316 B
YAML

---
- name: install ntpd
apt:
name: ntp
state: present
tags: ntp
- name: template ntp.conf
template:
src: ntp.conf.j2
dest: /etc/ntp.conf
backup: yes
notify: restart ntpd
tags: ntp
- name: start and enable ntpd
service:
name: ntp
state: started
enabled: yes
tags: ntp