From fbf61c8e6125b51d89882cfd89e19529323bbf7f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 2 Apr 2018 15:51:29 +0300 Subject: [PATCH] roles/munin: Don't use loop when installing one package --- roles/munin/tasks/munin-node.yml | 9 +++------ roles/munin/tasks/munin.yml | 4 +--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/roles/munin/tasks/munin-node.yml b/roles/munin/tasks/munin-node.yml index 0382ec2..c04f8ba 100644 --- a/roles/munin/tasks/munin-node.yml +++ b/roles/munin/tasks/munin-node.yml @@ -1,15 +1,12 @@ --- - name: Install munin-node - apt: name={{ item }} state=present - with_items: - - munin-node + apt: name=munin-node state=present tags: packages # some nice things to have for munin-node on Ubuntu +# libwww-perl: for munin's nginx_status check - name: Install munin-node deps - apt: name={{ item }} state=present - with_items: - - libwww-perl #for munin's nginx_status check + apt: name=libwww-perl state=present tags: packages - name: Create munin-node.conf diff --git a/roles/munin/tasks/munin.yml b/roles/munin/tasks/munin.yml index 5b43f4b..8ac97c8 100644 --- a/roles/munin/tasks/munin.yml +++ b/roles/munin/tasks/munin.yml @@ -1,8 +1,6 @@ --- - name: Install munin package - apt: name={{ item }} state=present - with_items: - - munin + apt: name=munin state=present tags: packages - name: Create munin configuration file