Skip to content

Commit 8ec4743

Browse files
committed
Resolve the condition issue for SELinux
Signed-off-by: Mahdi Abbasi <[email protected]>
1 parent 2ddab5e commit 8ec4743

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roles/os_hardening/tasks/selinux.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@
77
selinux:
88
policy: "{{ os_selinux_policy }}"
99
state: "{{ os_selinux_state }}"
10-
when: "'libselinux' in ansible_facts.packages"
10+
when:
11+
- "'libselinux' in ansible_facts.packages"
12+
- "'libselinux-python' in ansible_facts.packages"
13+
- "'policycoreutils-python' in ansible_facts.packages"

0 commit comments

Comments
 (0)