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: Icd9055008760e8090c986112af1737f0cf5c79e2
Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden 2018-03-06 13:15:49 -06:00
parent 5cc97cc414
commit 89724eb5a5

View File

@ -176,8 +176,6 @@
- include: neutron_selinux.yml
when:
- ansible_pkg_mgr in ['dnf', 'yum']
- ansible_selinux.status is defined
- ansible_selinux.status == "enabled"
- name: Ensure Open vSwitch service is started and enabled