homeserver/playbooks/on-off/remove_chrony.yml

30 lines
643 B
YAML
Raw Normal View History

---
- 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