ansible-config/roles/ntp-server/tasks/main.yml

22 lines
316 B
YAML
Raw Normal View History

2015-08-29 22:27:47 +02:00
---
2017-02-05 13:47:57 +01:00
- name: install ntpd
apt:
name: ntp
state: present
2015-08-29 22:27:47 +02:00
tags: ntp
2017-02-05 13:47:57 +01:00
- name: template ntp.conf
template:
src: ntp.conf.j2
dest: /etc/ntp.conf
backup: yes
notify: restart ntpd
2015-08-29 22:27:47 +02:00
tags: ntp
2017-02-05 13:47:57 +01:00
- name: start and enable ntpd
service:
name: ntp
state: started
enabled: yes
2015-08-29 22:27:47 +02:00
tags: ntp