From 6255727aee1c0b1111b982da17b92eaf3ad2ad6c Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 6 Mar 2018 13:18:58 -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: I3fa8e9c5eba7ba64553d5856b7d33074d0a96b32 Signed-off-by: Major Hayden --- tests/roles/bootstrap-host/tasks/prepare_aio_config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml index 44306d7c97..4d8ed05c02 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml @@ -104,7 +104,6 @@ policy: targeted state: permissive when: - - ansible_selinux.status is defined - ansible_selinux.status == "enabled"