roles/munin: Use apt module explicitly
Instead of using dynamic hack to use the package manager for the current host. We only have Ubuntu here anyways. Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
a8f4500567
commit
def8d83d49
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Install munin-node
|
- name: Install munin-node
|
||||||
action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
|
apt: name={{ item }} state=latest
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
with_items:
|
with_items:
|
||||||
- munin-node
|
- munin-node
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Install munin package
|
- name: Install munin package
|
||||||
action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
|
apt: name={{ item }} state=latest
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
with_items:
|
with_items:
|
||||||
- munin
|
- munin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user