44 lines
999 B
YAML
44 lines
999 B
YAML
---
|
|
|
|
- block:
|
|
|
|
- name: APT | Install APCu
|
|
ansible.builtin.apt:
|
|
pkg: "php-apcu"
|
|
|
|
- name: APT | Install Opcache
|
|
ansible.builtin.apt:
|
|
pkg: "{{ php_package_prefix }}opcache"
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- block:
|
|
|
|
- name: PKGNG | Install APCu
|
|
ansible.builtin.pkgng:
|
|
name: "php{{ php_version | replace('.', '') }}-pecl-APCu"
|
|
|
|
- name: PKGNG | Install Opcache
|
|
ansible.builtin.pkgng:
|
|
name: "{{ php_package_prefix }}opcache"
|
|
|
|
when: ansible_os_family == 'FreeBSD'
|
|
|
|
- name: TEMPLATE | Configure Opcache
|
|
ansible.builtin.template:
|
|
src: "etc/__php__/mods-available/opcache.ini.j2"
|
|
dest: "{{ php_mods_dir }}/opcache.ini"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: restart php-fpm
|
|
|
|
- name: TEMPLATE | Configure APCu
|
|
ansible.builtin.template:
|
|
src: "etc/__php__/mods-available/apcu.ini.j2"
|
|
dest: "{{ php_mods_dir }}/apcu.ini"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: restart php-fpm
|