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:
Major Hayden 2018-03-06 13:18:58 -06:00
parent 163ce759e6
commit 6255727aee

View File

@ -104,7 +104,6 @@
policy: targeted
state: permissive
when:
- ansible_selinux.status is defined
- ansible_selinux.status == "enabled"