From 445c69c8be3bba6b3109e868d5c49e81aab03d85 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Sun, 23 Apr 2017 12:38:51 +0200
Subject: [PATCH] Optimise PHP role wrapper

---
 tasks/main.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 957dad6..46c1106 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -12,7 +12,6 @@
 - block:
 
   - include: php.yml
-    when: role_php_completed is not defined
 
   - name: "Disable OpCache for CLI and FPM, they are there twice"
     command: 'phpdismod -s {{ item }} opcache'
@@ -25,4 +24,4 @@
     set_fact: role_php_completed=true
     tags: always
 
-  when: '"php" not in excluded_roles'
+  when: '"php" not in excluded_roles and role_php_completed is not defined'
-- 
GitLab