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:
Alan Orth 2015-05-26 00:02:43 +03:00
parent a8f4500567
commit def8d83d49
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
---
- name: Install munin-node
action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
apt: name={{ item }} state=latest
when: ansible_distribution == "Ubuntu"
with_items:
- munin-node

View File

@ -1,6 +1,7 @@
---
- name: Install munin package
action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
apt: name={{ item }} state=latest
when: ansible_distribution == "Ubuntu"
with_items:
- munin