26 lines
544 B
YAML
26 lines
544 B
YAML
- name: Purge systemd-timesyncd
|
|
ansible.builtin.apt:
|
|
name: systemd-timesyncd
|
|
state: absent
|
|
purge: true
|
|
|
|
- name: Setup Chrony
|
|
ansible.builtin.apt:
|
|
name: chrony
|
|
state: present
|
|
update_cache: yes
|
|
|
|
- name: Configure Chrony
|
|
ansible.builtin.copy:
|
|
dest: /etc/chrony/chrony.conf
|
|
content: |
|
|
server ntp.as208016.net iburst
|
|
pool de.pool.ntp.org iburst
|
|
driftfile /var/lib/chrony/drift
|
|
makestep 1.0 3
|
|
rtcsync
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- Restart chronyd |