2017-11-30 14:28:28 +00:00
|
|
|
- name: Install ntp daemon
|
|
|
|
package:
|
|
|
|
name: ntp
|
|
|
|
state: latest
|
|
|
|
|
|
|
|
|
|
|
|
- name: Template ntp.conf
|
|
|
|
template:
|
|
|
|
src: etc/ntp.conf.j2
|
|
|
|
dest: /etc/ntp.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
backup: yes
|
|
|
|
notify: Restart NTP
|
|
|
|
|
|
|
|
|
|
|
|
- name: Enable NTP daemon
|
|
|
|
service:
|
2020-12-03 22:43:59 +00:00
|
|
|
name: "{{ ntp_service_name }}"
|
2017-11-30 14:28:28 +00:00
|
|
|
enabled: True
|
|
|
|
|
|
|
|
|