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: I3b3578e9a7edf9699f85031125a43714401095ee
Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden 2018-03-06 13:16:35 -06:00
parent 3b83af571b
commit 2be5e0f579
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -86,5 +86,4 @@
- include: cinder_selinux.yml
when:
- ansible_selinux.status is defined
- ansible_selinux.status == "enabled"