roles/munin: Allow running on Debian hosts
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
abbc9f5073
commit
bc28cd008c
@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name: Install munin-node
|
- name: Install munin-node
|
||||||
apt: name={{ item }} state=latest
|
apt: name={{ item }} state=latest
|
||||||
when: ansible_distribution == "Ubuntu"
|
when: ansible_os_family == "Ubuntu"
|
||||||
with_items:
|
with_items:
|
||||||
- munin-node
|
- munin-node
|
||||||
|
|
||||||
# some nice things to have for munin-node on Ubuntu
|
# some nice things to have for munin-node on Ubuntu
|
||||||
- name: Install munin-node deps
|
- name: Install munin-node deps
|
||||||
when: ansible_distribution == "Ubuntu"
|
when: ansible_os_family == "Ubuntu"
|
||||||
apt: name={{ item }} state=present
|
apt: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libwww-perl #for munin's nginx_status check
|
- libwww-perl #for munin's nginx_status check
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Install munin package
|
- name: Install munin package
|
||||||
apt: name={{ item }} state=latest
|
apt: name={{ item }} state=latest
|
||||||
when: ansible_distribution == "Ubuntu"
|
when: ansible_os_family == "Debian"
|
||||||
with_items:
|
with_items:
|
||||||
- munin
|
- munin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user