ansible-php/tasks/opcache.yml

22 lines
495 B
YAML

---
- name: APT | Install APCu
apt:
pkg: "{{ php_package_prefix }}apcu"
- name: APT | Install Opcache
apt:
pkg: "{{ php_package_prefix }}opcache"
- name: TEMPLATE | Configure Opcache
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