Skip to content

Commit d66a8d6

Browse files
committed
enable variable to keep permissive
1 parent 0f28c6a commit d66a8d6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ app_protect_state: present
1515
# Enable enforcing selinux (you may need to open ports on your own)
1616
app_protect_selinux: false
1717

18+
# Enable enforcing mode if true. Permissive if false (audit only, no enforcing) globally (only works with app_protect_selinux: true)
19+
app_protect_selinux_enforcing: true
20+
1821
# The installation of NGINX App Protect includes a base signature set, which may be out of date.
1922
# This option installs the latest NGINX App Protect signatures.
2023
app_protect_install_signatures: true

tasks/configure-selinux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
selinux:
99
state: permissive
1010
policy: targeted
11-
when: app_protect_selinux
1211
changed_when: false
1312

1413
- name: "(Install: SELinux: Booleans) Allow HTTP network connection"
@@ -126,4 +125,5 @@
126125
selinux:
127126
state: enforcing
128127
policy: targeted
129-
changed_when: false
128+
changed_when: false
129+
when: app_protect_selinux_enforcing

0 commit comments

Comments
 (0)