mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-03-14 10:52:09 +07:00
PHP7 now supports APCu / Opcache
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
---
|
||||
|
||||
- name: APT | Install php-apcu
|
||||
apt: pkg=php5-apcu state=latest
|
||||
when: php_version == 5
|
||||
- name: APT | Install APCu / Opcache
|
||||
apt: pkg={{ item }} state=latest
|
||||
with_items:
|
||||
- "{{ php_apt_prefix }}apcu"
|
||||
- "{{ php_apt_prefix }}opcache"
|
||||
|
||||
- name: TEMPLATE | Configure APCu
|
||||
template: >
|
||||
src=etc/__php__/mods-available/opcache.ini.j2
|
||||
dest="{{ php_mods_dir }}/opcache.ini"
|
||||
notify: restart php-fpm
|
||||
when: php_version == 5
|
||||
|
||||
- name: TEMPLATE | Configure APCu
|
||||
template: >
|
||||
src=etc/__php__/mods-available/apcu.ini.j2
|
||||
dest={{ php_mods_dir }}/apcu.ini
|
||||
notify: restart php-fpm
|
||||
when: php_version == 5
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
; {{ ansible_managed }}
|
||||
;
|
||||
|
||||
extension={{ php_apc_package }}.so
|
||||
extension=apcu.so
|
||||
|
||||
; apc.enabled can be set to 0 to disable APC
|
||||
apc.enable={{ php_apc_enable }}
|
||||
|
||||
Reference in New Issue
Block a user