From f48cee4fe47feb910c40a8f79f9c8f99dead7fdc Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 13 Mar 2017 18:41:11 +0100
Subject: [PATCH] #3 Disable opcache as there is always a second one there

---
 tasks/main.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tasks/main.yml b/tasks/main.yml
index ae57ed5..957dad6 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -14,6 +14,13 @@
   - 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'
+    with_items:
+      - 'cli'
+      - 'fpm'
+    when: php_version|default("5.5") == "7"
+
   - name: 'PHP | Remember that this role had been run'
     set_fact: role_php_completed=true
     tags: always
-- 
GitLab