We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 764472a commit 7b48cefCopy full SHA for 7b48cef
roles/os_hardening/tasks/hardening.yml
@@ -115,5 +115,4 @@
115
import_tasks: selinux.yml
116
tags: selinux
117
when:
118
- - ansible_facts.selinux.status == 'enabled'
119
- os_selinux_enabled | bool
roles/os_hardening/tasks/selinux.yml
@@ -1,5 +1,10 @@
1
---
2
+- name: Gather the package facts
3
+ package_facts:
4
+ manager: auto
5
+
6
- name: Configure selinux | selinux-01
7
selinux:
8
policy: "{{ os_selinux_policy }}"
9
state: "{{ os_selinux_state }}"
10
+ when: "'libselinux' in ansible_facts.packages"
0 commit comments