ansible-php/tasks/opcache.yml

21 lines
547 B
YAML
Raw Permalink Normal View History

2016-01-22 21:57:29 +07:00
---
2016-02-27 19:05:02 +07:00
- name: APT | Install APCu
apt: pkg="{{ php_apt_prefix }}apcu" state=present
- name: APT | Install Opcache
apt: pkg="{{ php_apt_prefix }}opcache" state=present
when: php_version | version_compare('7.0', 'ge')
2016-01-22 21:57:29 +07:00
- name: TEMPLATE | Configure APCu
template: >
src=etc/__php__/mods-available/opcache.ini.j2
dest="{{ php_mods_dir }}/opcache.ini"
notify: restart php-fpm
- name: TEMPLATE | Configure APCu
template: >
src=etc/__php__/mods-available/apcu.ini.j2
dest={{ php_mods_dir }}/apcu.ini
notify: restart php-fpm