Fix loading APC/APCu

pull/5/head
Emilien Mantel 2015-07-24 09:49:16 +02:00
parent ab7923644c
commit b0572da1d6
3 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,9 @@
- name: APT | Install php-apcu
apt: pkg=php-apc state=latest
- name: SET_FACT | Set APC
set_fact: php_apc_package="apc"
- name: TEMPLATE | Configure APC
template: src=etc/php5/mods-available/apcu.ini.j2 dest=/etc/php5/mods-available/apc.ini
notify: restart php-fpm

View File

@ -3,6 +3,9 @@
- name: APT | Install php-apcu
apt: pkg=php5-apcu state=latest
- name: SET_FACT | Set APCu
set_fact: php_apc_package="apcu"
- name: TEMPLATE | Configure Opcache / APCu
template: src=etc/php5/mods-available/{{ item }}.ini.j2 dest=/etc/php5/mods-available/{{ item }}.ini
with_items:

View File

@ -2,7 +2,7 @@
; {{ ansible_managed }}
;
extension=apc.so
extension={{ php_apc_package }}.so
; apc.enabled can be set to 0 to disable APC
apc.enable={{ php_apc_enable }}