mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-03-14 10:52:09 +07:00
Install Opcache only on PHP >= 7.0
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
---
|
||||
|
||||
- name: APT | Install APCu / Opcache
|
||||
apt: pkg={{ item }} state=latest
|
||||
with_items:
|
||||
- "{{ php_apt_prefix }}apcu"
|
||||
- "{{ php_apt_prefix }}opcache"
|
||||
- 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')
|
||||
|
||||
- name: TEMPLATE | Configure APCu
|
||||
template: >
|
||||
|
||||
Reference in New Issue
Block a user