ansible-ffibk/roles/service-ntpd/tasks/main.yml
2018-09-18 14:27:58 +02:00

22 lines
364 B
YAML

---
- name: ensure systemd-timesyncd is disabled
systemd:
name: systemd-timesyncd
enabled: no
state: stopped
- name: install ntp packages
package:
name: "{{ item }}"
state: present
loop:
- ntp
- ntp-doc
- ntpdate
- ntpstat
- name: enable and start ntp daemon
systemd:
name: ntp
enabled: yes
state: started