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