diff --git a/CHANGELOG.md b/CHANGELOG.md index b54a47f..ea4dd2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ENHANCEMENTS: * Update Molecule to `3.2.0` and Docker Python SDK to `4.4.0`. * Remove CentOS/RHEL `6` from supported platforms due to EOL. +BUG FIXES: + +Fix issue whereas SELinux state would not be correctly set back to `enforcing` when `nginx_unit_selinux: true`. + ## 0.2.1 (November 19, 2020) ENHANCEMENTS: diff --git a/tasks/prerequisites/setup-selinux.yml b/tasks/prerequisites/setup-selinux.yml index c6b8c6f..8b5bb5c 100644 --- a/tasks/prerequisites/setup-selinux.yml +++ b/tasks/prerequisites/setup-selinux.yml @@ -21,8 +21,6 @@ selinux: state: permissive policy: targeted - changed_when: false - when: ansible_facts['selinux']['mode'] == "enforcing" - name: Allow SELinux HTTP network connections seboolean: @@ -56,7 +54,4 @@ selinux: state: enforcing policy: targeted - changed_when: false - when: - - nginx_unit_selinux_enforcing | bool - - ansible_facts['selinux']['mode'] == "permissive" + when: nginx_unit_selinux_enforcing | bool