Skip to content

Commit

Permalink
Fix bug related to issue dev-sec#537
Browse files Browse the repository at this point in the history
Signed-off-by: Mahdi Abbasi <[email protected]>
  • Loading branch information
MahdiAbbasi95 committed Dec 24, 2022
1 parent 764472a commit 7b48cef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion roles/os_hardening/tasks/hardening.yml
Expand Up @@ -115,5 +115,4 @@
import_tasks: selinux.yml
tags: selinux
when:
- ansible_facts.selinux.status == 'enabled'
- os_selinux_enabled | bool
5 changes: 5 additions & 0 deletions roles/os_hardening/tasks/selinux.yml
@@ -1,5 +1,10 @@
---
- name: Gather the package facts
package_facts:
manager: auto

- name: Configure selinux | selinux-01
selinux:
policy: "{{ os_selinux_policy }}"
state: "{{ os_selinux_state }}"
when: "'libselinux' in ansible_facts.packages"

0 comments on commit 7b48cef

Please sign in to comment.