Install Opcache only on PHP >= 7.0
parent
c092025337
commit
9ec6fbf952
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: APT | Install APCu / Opcache
|
- name: APT | Install APCu
|
||||||
apt: pkg={{ item }} state=latest
|
apt: pkg="{{ php_apt_prefix }}apcu" state=present
|
||||||
with_items:
|
|
||||||
- "{{ php_apt_prefix }}apcu"
|
- name: APT | Install Opcache
|
||||||
- "{{ php_apt_prefix }}opcache"
|
apt: pkg="{{ php_apt_prefix }}opcache" state=present
|
||||||
|
when: php_version | version_compare('7.0', 'ge')
|
||||||
|
|
||||||
- name: TEMPLATE | Configure APCu
|
- name: TEMPLATE | Configure APCu
|
||||||
template: >
|
template: >
|
||||||
|
|
Loading…
Reference in New Issue