From 1097a154102fba4d754cf76da4f113464edf50ac Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Tue, 23 Feb 2016 16:12:20 +0100
Subject: [PATCH] General improvements

---
 tasks/php.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tasks/php.yml b/tasks/php.yml
index b6aadec..11f727f 100644
--- a/tasks/php.yml
+++ b/tasks/php.yml
@@ -30,7 +30,8 @@
     state=present
   with_items:
     - fcgid
-  notify: "Apache | Restart Apache"
+  when: not php_called_from_apache
+  notify: "PHP | Restart Apache"
 
 - name: "PHP | Configuration file, php.ini"
   template:
@@ -39,6 +40,7 @@
     owner=root
     group=root
     mode=0644
+  when: not php_called_from_apache
   notify:
     - "PHP | Restart Apache"
 
@@ -49,6 +51,7 @@
     owner=root
     group=root
     mode=0644
+  when: not php_called_from_apache
   notify:
     - "PHP | Restart Apache"
 
@@ -81,7 +84,7 @@
     dest=/etc/php5/apache2/extra/browscap.ini
     owner=root
     group=root
-  when: php_browscap
+  when: not php_called_from_apache and php_browscap
   notify:
     - "PHP | Restart Apache"
 
-- 
GitLab