tags
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
f46144bd78
commit
2b879d49e6
1 changed files with 16 additions and 0 deletions
|
@ -94,19 +94,35 @@
|
|||
- name: copy over our custom selinux module
|
||||
copy: src=selinux/fi-nrpe.pp dest=/usr/share/nrpe/fi-nrpe.pp
|
||||
register: selinux_module
|
||||
tags:
|
||||
- config
|
||||
- nagios_client
|
||||
- selinux
|
||||
|
||||
- name: install our custom selinux module
|
||||
command: semodule -i /usr/share/nrpe/fi-nrpe.pp
|
||||
when: ansible_distribution_major_version|int == 7 and selinux_module|changed
|
||||
tags:
|
||||
- config
|
||||
- nagios_client
|
||||
- selinux
|
||||
|
||||
- name: copy over our custom selinux module for mirrorlist
|
||||
copy: src=selinux/fi-nrpe.pp dest=/usr/share/nrpe/mirrormanager_container.pp
|
||||
register: selinux_module_mirrorlist
|
||||
when: 'proxy' in inventory_hostname
|
||||
tags:
|
||||
- config
|
||||
- nagios_client
|
||||
- selinux
|
||||
|
||||
- name: install our custom selinux module for mirrorlist
|
||||
command: semodule -i /usr/share/nrpe/mirrormanager_container.pp
|
||||
when: 'proxy' in inventory_hostname and selinux_module|changed
|
||||
tags:
|
||||
- config
|
||||
- nagios_client
|
||||
- selinux
|
||||
|
||||
|
||||
# Set up our base config.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue