mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-04-15 13:32:09 +07:00
APC/APCu better management
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
- name: APT | Install PHP packages
|
||||
apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time=3600
|
||||
with_flattened:
|
||||
with_flattened:
|
||||
- php_packages
|
||||
- php_extra_packages
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
include: fpm.yml
|
||||
when: php_install_fpm
|
||||
|
||||
- name: SHELL | Get PHP version on apt
|
||||
- name: SHELL | Get PHP version on apt
|
||||
shell: LANG=C apt-cache policy php5 2>&1 | awk '/Candidate:/ { print $2 }'
|
||||
register: php_apt_version
|
||||
changed_when: false
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
apt: pkg=php-apc state=latest
|
||||
|
||||
- name: TEMPLATE | Configure APC
|
||||
template: src=etc/php5/mods-available/apc.j2 dest=/etc/php5/mods-available/apc.ini
|
||||
template: src=etc/php5/mods-available/apcu.ini.j2 dest=/etc/php5/mods-available/apc.ini
|
||||
notify: restart php-fpm
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
apt: pkg=php5-apcu state=latest
|
||||
|
||||
- name: TEMPLATE | Configure Opcache / APCu
|
||||
template: src=etc/php5/mods-available/{{ item }}.j2 dest=/etc/php5/mods-available/{{ item }}
|
||||
template: src=etc/php5/mods-available/{{ item }}.ini.j2 dest=/etc/php5/mods-available/{{ item }}.ini
|
||||
with_items:
|
||||
- apcu
|
||||
- opcache
|
||||
|
||||
Reference in New Issue
Block a user