From d7bd5ef68f3d11e440ff2407e309ea4e07aa2079 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 6 Mar 2018 13:15:00 -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: I4b5930faf2bdc5f7d1b346df875715c7e304d99e Signed-off-by: Major Hayden --- tasks/haproxy_service_config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/tasks/haproxy_service_config.yml b/tasks/haproxy_service_config.yml index 5b07b98..632a1a8 100644 --- a/tasks/haproxy_service_config.yml +++ b/tasks/haproxy_service_config.yml @@ -38,6 +38,4 @@ notify: - Restart haproxy when: - - ansible_pkg_mgr == 'yum' - - ansible_selinux.status is defined - ansible_selinux.status == "enabled"