From 40056a902072b78ed2b0f93c291b13cc0e63660f Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 18 Feb 2021 10:37:33 +0100
Subject: [PATCH] ansible/roles/apache#10 Do not install PHP FPM default when
 Apache default is turned off

---
 tasks/php.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks/php.yml b/tasks/php.yml
index 400a7e3..b711a31 100644
--- a/tasks/php.yml
+++ b/tasks/php.yml
@@ -163,7 +163,7 @@
     owner: root
     group: root
     mode: 0644
-  when: (php_version_main|default(7) == 7) and php_fpm
+  when: (php_version_main|default(7) == 7) and php_fpm and apache_server_default
   notify:
     - Restart PHP-FPM
 
-- 
GitLab