From d97d521bdcd9965ba7ddf88ad9c7506380c72244 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 31 Mar 2016 13:41:38 +0200 Subject: [PATCH] library/roles/nagios/tasks/nagios.yml: Fix the conditional on the task that installs the additional packages. --- nagios/tasks/nagios.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nagios/tasks/nagios.yml b/nagios/tasks/nagios.yml index c805f387..7610cbd3 100644 --- a/nagios/tasks/nagios.yml +++ b/nagios/tasks/nagios.yml @@ -2,12 +2,14 @@ - name: Install the nagios packages apt: pkg={{ item }} state=installed with_items: '{{ nagios_plugins_base_pkgs }}' - when: is_not_debian_less_than_6 tags: nagios -- name: debian 6 has additional nagios plugins +- 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_precise tags: [ 'nagios', 'nagios_plug_contrib' ] - name: Create the directory where our local plugins are installed