library/roles/nagios/tasks/nagios.yml: Fix the conditional on the task that installs the additional packages.

This commit is contained in:
Andrea Dell'Amico 2016-03-31 13:41:38 +02:00
parent 100a2db114
commit d97d521bdc
1 changed files with 4 additions and 2 deletions

View File

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