diff --git a/roles/nagios_client/tasks/main.yml b/roles/nagios_client/tasks/main.yml index 0c55d78e11..d34605835c 100644 --- a/roles/nagios_client/tasks/main.yml +++ b/roles/nagios_client/tasks/main.yml @@ -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.