homeserver/playbooks/on-off/remove_chrony.yml
mg ce709e7918 systemd: chrony --> timesyncd (#329)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#329
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-02-18 20:34:43 +01:00

30 lines
643 B
YAML

---
- hosts: all
tasks:
# deinstalliere andere ntp-implementationen
- name: removed chrony/ntp packages
become: yes
ansible.builtin.package:
name:
- chrony
- ntp
state: absent
- name: remove chrony config
become: yes
ansible.builtin.file:
dest: /etc/chrony/chrony.conf
state: absent
- name: remove logrotate config
become: yes
ansible.builtin.file:
dest: /etc/logrotate.d/chrony
state: absent
- name: remove chrony driftfile folder
become: yes
file:
state: absent
path: /var/lib/chrony