]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
nameserver: Configure selinux only if enabled 552/head
authorDavid Galloway <dgallowa@redhat.com>
Sun, 22 Mar 2020 14:17:05 +0000 (10:17 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Sun, 22 Mar 2020 14:17:05 +0000 (10:17 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/nameserver/tasks/config.yml

index bfbd2cb371509a0b003475b9d42d74ddd2522663..9e0fe3ab718a7b3df7d851cc866f047b3577ae8d 100644 (file)
@@ -27,6 +27,9 @@
     name: named_write_master_zones
     state: yes
     persistent: yes
+  when:
+    - ansible_selinux.status is defined
+    - ansible_selinux.status == "enabled"
 
 # Helps prevent accidental DoS
 - name: Double maximum configured connections