From d13b1aab4a2e905030b3da4dbcec19b7423c0ce4 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 9 Oct 2017 13:19:56 +0200
Subject: [PATCH] #6 Define priority in ini file

---
 tasks/main.yml                        | 7 -------
 templates/etc-php5-conf-d-opcache.ini | 1 +
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index a369324..39b93d7 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -13,13 +13,6 @@
 
   - include_tasks: php.yml
 
-  - 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: "Link PhpEnMod for PHP 5.3"
     file:
       dest: '/usr/local/bin/php{{ item }}'
diff --git a/templates/etc-php5-conf-d-opcache.ini b/templates/etc-php5-conf-d-opcache.ini
index 139c391..b25a5b8 100644
--- a/templates/etc-php5-conf-d-opcache.ini
+++ b/templates/etc-php5-conf-d-opcache.ini
@@ -1,3 +1,4 @@
+; priority=10
 zend_extension=opcache.so
 opcache.enable=1
 opcache.memory_consumption={{ opcache_memory_consumption }}
-- 
GitLab