library/roles/nagios/tasks/nagios.yml: Fix the installation of nagios-plugins-contrib.

This commit is contained in:
Andrea Dell'Amico 2016-11-17 16:35:26 +01:00
parent 325a5d9066
commit d0ca5c3aa6
1 changed files with 7 additions and 3 deletions

View File

@ -7,9 +7,13 @@
- name: Additional nagios plugins when available - name: Additional nagios plugins when available
apt: pkg={{ item }} state=installed apt: pkg={{ item }} state=installed
with_items: '{{ nagios_plugins_contrib }}' with_items: '{{ nagios_plugins_contrib }}'
when: when: is_not_debian_less_than_6
- is_not_debian_less_than_6 tags: [ 'nagios', 'nagios_plug_contrib' ]
- is_not_ubuntu_less_than_trusty
- 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' ] tags: [ 'nagios', 'nagios_plug_contrib' ]
- name: Create the directory where our local plugins are installed - name: Create the directory where our local plugins are installed