Skip to content

Commit

Permalink
Resolve the condition issue for SELinux
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 b6d1b2c commit 4774c0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/os_hardening/tasks/selinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
selinux:
policy: "{{ os_selinux_policy }}"
state: "{{ os_selinux_state }}"
when: "'libselinux' in ansible_facts.packages"
when:
- "'libselinux' in ansible_facts.packages"
- "'libselinux-python' in ansible_facts.packages"
- "'policycoreutils-python' in ansible_facts.packages"

0 comments on commit 4774c0b

Please sign in to comment.