24 lines
393 B
YAML
24 lines
393 B
YAML
---
|
|
- name: Install chronyd
|
|
apt:
|
|
name: chrony
|
|
|
|
- name: Configure chronyd
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/etc/chrony/{{ item }}"
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=
|
|
loop:
|
|
- chrony.conf
|
|
- chrony.keys
|
|
notify:
|
|
- Restart chronyd
|
|
|
|
- name: Enable and start chronyd
|
|
systemd:
|
|
name: chronyd.service
|
|
enabled: true
|
|
state: started
|
|
...
|