From d0ca5c3aa6726ba66fadff8cf342724d8c4fe271 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 17 Nov 2016 16:35:26 +0100 Subject: [PATCH] library/roles/nagios/tasks/nagios.yml: Fix the installation of nagios-plugins-contrib. --- nagios/tasks/nagios.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nagios/tasks/nagios.yml b/nagios/tasks/nagios.yml index ddacb3e0..39c20b3b 100644 --- a/nagios/tasks/nagios.yml +++ b/nagios/tasks/nagios.yml @@ -7,9 +7,13 @@ - name: Additional nagios plugins when available apt: pkg={{ item }} state=installed with_items: '{{ nagios_plugins_contrib }}' - when: - - is_not_debian_less_than_6 - - is_not_ubuntu_less_than_trusty + when: is_not_debian_less_than_6 + tags: [ 'nagios', 'nagios_plug_contrib' ] + +- name: Additional nagios plugins when available + apt: pkg={{ item }} state=installed + with_items: '{{ nagios_plugins_contrib }}' + when: is_not_ubuntu_less_than_trusty tags: [ 'nagios', 'nagios_plug_contrib' ] - name: Create the directory where our local plugins are installed