forked from ISTI-ansible-roles/ansible-roles
library/roles/nagios, xen: Various fixes to add debian 8 compatibility.
This commit is contained in:
parent
4b06f84618
commit
0ab5593d7d
|
@ -18,7 +18,7 @@
|
|||
# "ignoreip" can be an IP address, a CIDR mask or a DNS host. Fail2ban will not
|
||||
# ban a host which matches an address in this list. Several addresses can be
|
||||
# defined using space separator.
|
||||
ignoreip = 127.0.0.1/8 {{ cm_ip }} {{ monitoring_ip }}
|
||||
ignoreip = 127.0.0.1/8 {% if cm_ip is defined %}{{ cm_ip }}{% endif %} {% if monitoring_ip is defined %}{{ monitoring_ip }}{% endif %}
|
||||
|
||||
# "bantime" is the number of seconds that a host is banned.
|
||||
bantime = {{ f2b_ban_time }}
|
||||
|
|
|
@ -7,14 +7,28 @@
|
|||
register: update_apt_cache
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Install the NeMIS internal repository apt key
|
||||
apt_key: url=http://ppa.research-infrastructures.eu/system/keys/system-archive.asc state=present
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: research infrastructures system repository on debian
|
||||
copy: src={{ item }} dest=/etc/apt/sources.list.d/{{ item }}
|
||||
with_items:
|
||||
- research-infrastructures.eu.system.list
|
||||
when: is_debian6
|
||||
when: is_debian
|
||||
register: update_apt_cache
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Update apt cache
|
||||
apt: update_cache=yes
|
||||
when: ( update_apt_cache | changed )
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
#- action: apt_key id=1285491434D8786F state=present
|
||||
- name: Install the Dell OMSA repository apt key
|
||||
apt_key: keyserver=pool.sks-keyservers.net id=1285491434D8786F
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Install the Dell apt repository
|
||||
template: src={{ item }}.j2 dest=/etc/apt/sources.list.d/{{ item }}
|
||||
with_items:
|
||||
|
@ -23,18 +37,9 @@
|
|||
register: update_apt_cache
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Install the NeMIS internal repository apt key
|
||||
apt_key: url=http://ppa.research-infrastructures.eu/system/keys/system-archive.asc state=present
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
#- action: apt_key id=1285491434D8786F state=present
|
||||
- name: Install the Dell OMSA repository apt key
|
||||
apt_key: keyserver=pool.sks-keyservers.net id=1285491434D8786F
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Update apt cache
|
||||
apt: update_cache=yes
|
||||
when: update_apt_cache.changed
|
||||
when: ( update_apt_cache | changed )
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Install the Dell OMSA packages dependencies
|
||||
|
@ -42,7 +47,7 @@
|
|||
with_items: nagios_dell_omsa_deps
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Install the Dell OMSA packages dependencies
|
||||
- name: Install other Dell OMSA packages dependencies
|
||||
apt: pkg={{ item }} state=installed
|
||||
with_items:
|
||||
- python-requests
|
||||
|
@ -75,8 +80,8 @@
|
|||
when: ( libssl_legacy | changed )
|
||||
tags: [ 'dell', 'nagios' ]
|
||||
|
||||
- name: Install the Dell OMSA packages
|
||||
apt: pkg={{ item }} state=installed force=yes
|
||||
- name: Install the main Dell OMSA package
|
||||
apt: pkg={{ item }} state={{ nagios_dell_omsa_pkg_state }} force=yes
|
||||
with_items:
|
||||
- syscfg
|
||||
when: is_not_debian6
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
- name: Ensure that the smart server is enabled and running
|
||||
service: name=smartmontools state=started enabled=yes
|
||||
when: not is_debian8
|
||||
tags:
|
||||
- nagios-hw
|
||||
- nagios
|
||||
|
|
Loading…
Reference in New Issue