From e43d8924e8c861ca7f2f84fb081d20c37b21e6a1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 5 Nov 2017 01:17:01 +0200 Subject: [PATCH] roles/munin: Remove ansible_os_family checks First of all, there is no ansible_os_family Ubuntu! Second, we are only supporting Debian-based systems here so there is no need to check this. --- roles/munin/tasks/munin-node.yml | 2 -- roles/munin/tasks/munin.yml | 1 - 2 files changed, 3 deletions(-) diff --git a/roles/munin/tasks/munin-node.yml b/roles/munin/tasks/munin-node.yml index b923995..0382ec2 100644 --- a/roles/munin/tasks/munin-node.yml +++ b/roles/munin/tasks/munin-node.yml @@ -1,14 +1,12 @@ --- - name: Install munin-node apt: name={{ item }} state=present - when: ansible_os_family == "Ubuntu" with_items: - munin-node tags: packages # some nice things to have for munin-node on Ubuntu - name: Install munin-node deps - when: ansible_os_family == "Ubuntu" apt: name={{ item }} state=present with_items: - libwww-perl #for munin's nginx_status check diff --git a/roles/munin/tasks/munin.yml b/roles/munin/tasks/munin.yml index f1fedb4..5b43f4b 100644 --- a/roles/munin/tasks/munin.yml +++ b/roles/munin/tasks/munin.yml @@ -1,7 +1,6 @@ --- - name: Install munin package apt: name={{ item }} state=present - when: ansible_os_family == "Debian" with_items: - munin tags: packages