forked from ISTI-ansible-roles/ansible-roles
nagios: always install the nagios-plugins-contrib package.
This commit is contained in:
parent
97f8901dbc
commit
f4fad43867
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue