We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66a8d6 commit 0f6aa3eCopy full SHA for 0f6aa3e
tasks/configure-selinux.yml
@@ -4,11 +4,16 @@
4
name: policycoreutils-python, setools
5
state: present
6
7
+- name: "(Install: SELinux) Check for SELinux enabled"
8
+ msg: "You need to enable selinux, if it was disabled you need to reboot"
9
+ when: ansible_selinux is not defined
10
+
11
- name: "(Install: SELinux) Permissive SELinux"
12
selinux:
13
state: permissive
14
policy: targeted
15
changed_when: false
16
+ when: ansible_selinux.mode == "enforcing"
17
18
- name: "(Install: SELinux: Booleans) Allow HTTP network connection"
19
seboolean:
@@ -126,4 +131,4 @@
126
131
state: enforcing
127
132
128
133
129
- when: app_protect_selinux_enforcing
134
+ when: app_protect_selinux_enforcing and ansible_selinux.mode == "permissive"
0 commit comments