From def8d83d4961151c09283eda7eef5e3527c86b1a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 26 May 2015 00:02:43 +0300 Subject: [PATCH] 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 --- roles/munin/tasks/munin-node.yml | 3 ++- roles/munin/tasks/munin.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/munin/tasks/munin-node.yml b/roles/munin/tasks/munin-node.yml index 96d8e20..eaf6964 100644 --- a/roles/munin/tasks/munin-node.yml +++ b/roles/munin/tasks/munin-node.yml @@ -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 diff --git a/roles/munin/tasks/munin.yml b/roles/munin/tasks/munin.yml index bed4cc8..c842373 100644 --- a/roles/munin/tasks/munin.yml +++ b/roles/munin/tasks/munin.yml @@ -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