APC/APCu better management

This commit is contained in:
Emilien Mantel
2015-07-23 18:10:17 +02:00
parent 7b7e3bb4f4
commit 19a1a84c8f
11 changed files with 59 additions and 56 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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