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: Ia718479499d4fd15db9ebbc404b5addbad00cc71
Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden 2018-03-06 13:01:29 -06:00
parent a28482471a
commit c30cb98efa
1 changed files with 0 additions and 1 deletions

View File

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