homeserver/playbooks/on-off/remove_munin_node.yml
Michael Grote 8e0e7bde21 Abbau munin (#581)
Reviewed-on: #581
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-19 09:32:59 +02:00

27 lines
504 B
YAML

---
- hosts: all
become: yes
tasks:
- name: remove Packages
become: yes
ansible.builtin.apt:
autoremove: yes
autoclean: yes
purge: yes
name:
- munin-node
state: absent
- name: remove folder
become: yes
ansible.builtin.file:
path: /etc/munin
state: absent
- name: ensure user is absent
become: true
ansible.builtin.user:
name: munin
state: absent
remove: true