From f4fad4386727ee26f7fc44bab840631f6b52afa1 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 15 Jan 2018 18:44:28 +0100 Subject: [PATCH] nagios: always install the nagios-plugins-contrib package. --- nagios/tasks/nagios.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/nagios/tasks/nagios.yml b/nagios/tasks/nagios.yml index d759359..27278e7 100644 --- a/nagios/tasks/nagios.yml +++ b/nagios/tasks/nagios.yml @@ -1,25 +1,12 @@ --- - name: Install the nagios packages - apt: pkg={{ item }} state=installed update_cache=yes + apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800 with_items: '{{ nagios_plugins_base_pkgs }}' tags: nagios - name: Additional nagios plugins when available - apt: pkg={{ item }} state=installed + apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800 with_items: '{{ nagios_plugins_contrib }}' - when: is_debian7 - tags: [ 'nagios', 'nagios_plug_contrib' ] - -- name: Additional nagios plugins when available - apt: pkg={{ item }} state=installed - with_items: '{{ nagios_plugins_contrib }}' - when: is_debian8 - tags: [ 'nagios', 'nagios_plug_contrib' ] - -- name: Additional nagios plugins when available - apt: pkg={{ item }} state=installed - with_items: '{{ nagios_plugins_contrib }}' - when: is_trusty tags: [ 'nagios', 'nagios_plug_contrib' ] - name: Create the directory where our local plugins are installed