nagios: always install the nagios-plugins-contrib package.

This commit is contained in:
Andrea Dell'Amico 2018-01-15 18:44:28 +01:00
parent 97f8901dbc
commit f4fad43867
1 changed files with 2 additions and 15 deletions

View File

@ -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