Simplify SELinux check
The ansible_selinux variable is always populated with a 'status' property, even if SELinux is not installed or configured. This patch simplifies the check. Change-Id: I1c3bbe4ff1084fc41194ae8e4a0027ca62c3a41a Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
parent
5eb7c56a40
commit
744f34dbf8
@ -128,5 +128,4 @@
|
||||
|
||||
- include_tasks: lxc_selinux.yml
|
||||
when:
|
||||
- ansible_selinux.status is defined
|
||||
- ansible_selinux.status == "enabled"
|
||||
|
Loading…
Reference in New Issue
Block a user