forked from ISTI-ansible-roles/ansible-roles
library/roles/nagios/tasks/nagios.yml: Fix the conditional on the task that installs the additional packages.
This commit is contained in:
parent
100a2db114
commit
d97d521bdc
|
@ -2,12 +2,14 @@
|
||||||
- name: Install the nagios packages
|
- name: Install the nagios packages
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=installed
|
||||||
with_items: '{{ nagios_plugins_base_pkgs }}'
|
with_items: '{{ nagios_plugins_base_pkgs }}'
|
||||||
when: is_not_debian_less_than_6
|
|
||||||
tags: nagios
|
tags: nagios
|
||||||
|
|
||||||
- name: debian 6 has additional nagios plugins
|
- 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:
|
||||||
|
- is_not_debian_less_than_6
|
||||||
|
- is_not_ubuntu_less_than_precise
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue