16 lines
333 B
YAML
16 lines
333 B
YAML
---
|
|
- name: Create config
|
|
ansible.builtin.template:
|
|
dest: /etc/ntpd.conf
|
|
src: ntpd.conf.j2
|
|
mode: "0644"
|
|
owner: root
|
|
group: "{{ ansible_wheel }}"
|
|
validate: "/usr/sbin/ntpd -f %s -n"
|
|
notify: Restart ntpd
|
|
|
|
- name: Enable service
|
|
ansible.builtin.service:
|
|
name: ntpd
|
|
state: started
|
|
enabled: true
|