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: I3fa8e9c5eba7ba64553d5856b7d33074d0a96b32 Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
parent
163ce759e6
commit
6255727aee
@ -104,7 +104,6 @@
|
||||
policy: targeted
|
||||
state: permissive
|
||||
when:
|
||||
- ansible_selinux.status is defined
|
||||
- ansible_selinux.status == "enabled"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user