From 89724eb5a559acd089b7ab2feac81c94ee12ab04 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 6 Mar 2018 13:15:49 -0600 Subject: [PATCH] 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 --- tasks/neutron_install.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/tasks/neutron_install.yml b/tasks/neutron_install.yml index a42ebf0e..f1df36cb 100644 --- a/tasks/neutron_install.yml +++ b/tasks/neutron_install.yml @@ -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