Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-01-12 21:48:01 +00:00
parent f46144bd78
commit 2b879d49e6

View file

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