From 65f58105b65dd261eff87912a5e6c797d064b4de Mon Sep 17 00:00:00 2001 From: mg Date: Fri, 19 Mar 2021 12:06:40 +0100 Subject: [PATCH] =?UTF-8?q?Munin=20f=C3=BCr=20alle=20"nicht"-Proxmox-Hosts?= =?UTF-8?q?=20entfernt=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Munin für alle "nicht"-Proxmox-Hosts entfernt Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/44 Co-Authored-By: mg Co-Committed-By: mg --- group_vars/all.yml | 4 ---- group_vars/proxmox.yml | 4 ++++ playbooks/on-off/remove_munin_node.yml | 7 ++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/group_vars/all.yml b/group_vars/all.yml index e8b806e6..d355ac01 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -1,8 +1,4 @@ --- - ### geerlingguy.munin-node - munin_node_bind_host: "0.0.0.0" - munin_node_bind_port: "4949" - munin_node_allowed_cidrs: [192.168.2.0/24] ### wird in vielen Rollen verwendet empfaenger_mail: michael.grote@posteo.de file_header: | diff --git a/group_vars/proxmox.yml b/group_vars/proxmox.yml index c6be5765..28d3493c 100644 --- a/group_vars/proxmox.yml +++ b/group_vars/proxmox.yml @@ -18,6 +18,10 @@ ### mgrote.apcupsd apcupsd_slave_polltime: 10 #in Sekunden ### geerlingguy.munin-node + ### geerlingguy.munin-node + munin_node_bind_host: "0.0.0.0" + munin_node_bind_port: "4949" + munin_node_allowed_cidrs: [192.168.2.0/24] munin_node_plugins: - name: apc_nis - name: hddtemp_smartctl diff --git a/playbooks/on-off/remove_munin_node.yml b/playbooks/on-off/remove_munin_node.yml index e59746cb..2976910f 100644 --- a/playbooks/on-off/remove_munin_node.yml +++ b/playbooks/on-off/remove_munin_node.yml @@ -1,5 +1,5 @@ --- -- hosts: all +- hosts: all,!proxmox become: yes tasks: @@ -12,3 +12,8 @@ name: - munin-node state: absent + - name: remove folder + become: yes + ansible.builtin.file: + path: /etc/munin + state: absent