You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should probably change that. I think this worked before...
I do see one problem though: ansible_facts.selinux.status shows disabled, whether it is actually disabled or it isn't installed at all (e.g. on debian systems).
So we should check if it is installed and only then continue enabling it.
MahdiAbbasi95
added a commit
to MahdiAbbasi95/ansible-collection-hardening
that referenced
this issue
Dec 23, 2022
Describe the bug
In the OS Hardening role SELinux will not be enabled if SELinux is already disabled
Expected behavior
Expect SELinux to be enabled and configured.
Actual behavior
Example Playbook
OS / Environment
Both targets running CentOS 7
Ansible Version
Role Version
Additional context
This conditional will return false if SELinux is not enabled
ansible-collection-hardening/roles/os_hardening/tasks/hardening.yml
Line 96 in 1d3ea50
The text was updated successfully, but these errors were encountered: