commited current state (new functions, may not work by now)
This commit is contained in:
26
roles/system/tasks/setup-timeserver.yaml
Normal file
26
roles/system/tasks/setup-timeserver.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user