From 2be5e0f57949902e7f5cf3ab3358af211c58c9ec Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 6 Mar 2018 13:16:35 -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: I3b3578e9a7edf9699f85031125a43714401095ee Signed-off-by: Major Hayden --- tasks/cinder_post_install.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/cinder_post_install.yml b/tasks/cinder_post_install.yml index 7bdfc04c..a18ed52e 100644 --- a/tasks/cinder_post_install.yml +++ b/tasks/cinder_post_install.yml @@ -86,5 +86,4 @@ - include: cinder_selinux.yml when: - - ansible_selinux.status is defined - ansible_selinux.status == "enabled"