From 9ee52fa1e6b2f4634b5054ec76dfd28e2927afcb Mon Sep 17 00:00:00 2001 From: Lazlo Westerhof Date: Fri, 10 Jan 2020 10:31:38 +0100 Subject: [PATCH] Only configure sebool if selinux is enabled. --- roles/php/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/php/tasks/main.yml b/roles/php/tasks/main.yml index a42c4cc02..8c6a4ba0a 100644 --- a/roles/php/tasks/main.yml +++ b/roles/php/tasks/main.yml @@ -53,7 +53,8 @@ name: httpd_can_network_connect state: yes persistent: yes - when: ansible_selinux + when: ansible_selinux.status == "enabled" + - name: Ensure PHP is configured