]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Delete leftover SELinux policy modules 309/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 2 Mar 2017 19:02:45 +0000 (14:02 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 2 Mar 2017 19:02:45 +0000 (14:02 -0500)
Jobs were occasionally failing due to
/etc/selinux/targeted/active/modules/400/mod_fastcgi/lang_ext being
corrupt.  mod_fastcgi is removed and reinstalled with every
testnodes.yml run anyway so this just makes sure valid SELinux policy
modules are put in place.

Fixes: http://tracker.ceph.com/issues/19126
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/nrpe-selinux.yml

index e8f39268cf84623d5245e35f5eba9ccdc59de743..4cd0dbe0a647e833239565c55cf052568c26ea67 100644 (file)
     state: yes
     persistent: yes
 
+# See http://tracker.ceph.com/issues/19126
+- name: nrpe - Clean up cephlab SELinux policy modules
+  file:
+    path: "/etc/selinux/targeted/active/modules/400/{{ item }}"
+    state: absent
+  with_items:
+    - mod_fastcgi
+    - nrpe
+
 - name: nrpe - Remove SELinux policy package
   command: semodule -r nrpe
   failed_when: false