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:
Major Hayden 2018-03-06 13:05:43 -06:00
parent 5eb7c56a40
commit 744f34dbf8
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -128,5 +128,4 @@
- include_tasks: lxc_selinux.yml
when:
- ansible_selinux.status is defined
- ansible_selinux.status == "enabled"