]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Skip NRPE selinux setup if selinux disabled 237/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 3 May 2016 20:32:36 +0000 (16:32 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 3 May 2016 20:45:55 +0000 (16:45 -0400)
Fixes: http://tracker.ceph.com/issues/15675
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/main.yml

index 7b0f536b5a6f2f675e786050bb4117211d6244ba..d17c30f094fad6cbe58c13d1c1425778560d7248 100644 (file)
   tags:
     - nagios
 
+- name: Get SELinux status
+  command: getenforce
+  register: selinux_status
+  when: ansible_pkg_mgr == "yum"
+  tags:
+    - nagios
+
 # configure selinux for nagios
 - include: nrpe-selinux.yml
-  when: ansible_pkg_mgr == "yum"
+  when: selinux_status is defined and selinux_status.stdout != "Disabled"
   tags:
     - nagios