Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 84cd127

Browse files
authored
SELinux state should now be correctly set back to enforcing (#9)
1 parent 4fdcfd0 commit 84cd127

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ ENHANCEMENTS:
77
* Update Molecule to `3.2.0` and Docker Python SDK to `4.4.0`.
88
* Remove CentOS/RHEL `6` from supported platforms due to EOL.
99

10+
BUG FIXES:
11+
12+
Fix issue whereas SELinux state would not be correctly set back to `enforcing` when `nginx_unit_selinux: true`.
13+
1014
## 0.2.1 (November 19, 2020)
1115

1216
ENHANCEMENTS:

tasks/prerequisites/setup-selinux.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
selinux:
2222
state: permissive
2323
policy: targeted
24-
changed_when: false
25-
when: ansible_facts['selinux']['mode'] == "enforcing"
2624

2725
- name: Allow SELinux HTTP network connections
2826
seboolean:
@@ -56,7 +54,4 @@
5654
selinux:
5755
state: enforcing
5856
policy: targeted
59-
changed_when: false
60-
when:
61-
- nginx_unit_selinux_enforcing | bool
62-
- ansible_facts['selinux']['mode'] == "permissive"
57+
when: nginx_unit_selinux_enforcing | bool

0 commit comments

Comments
 (0)