make apc optional

This commit is contained in:
Ricardo Oliveira 2014-09-02 15:18:42 +01:00
parent 950049e5bf
commit 3782e76a07

View File

@ -23,14 +23,19 @@
notify: restart webserver
when: ansible_os_family == 'Debian'
- name: Place PHP configuration files in place.
- name: Place PHP configuration file in place.
template: >
src={{ item.src }}
dest={{ item.dest }}
src=php.ini.j2
dest={{ php_conf_path }}/php.ini
owner=root group=root mode=644
with_items:
- { src: php.ini.j2, dest: "{{ php_conf_path }}/php.ini" }
- { src: apc.ini.j2, dest: "{{ php_extension_conf_path }}/{{ php_apc_conf_filename }}" }
notify: restart webserver
- name: Place APC configuration file in place.
template: >
src=apc.ini.j2
dest={{ php_extension_conf_path }}/{{ php_apc_conf_filename }}
owner=root group=root mode=644
when: php_enable_apc
notify: restart webserver
- name: Ensure php-fpm is started and enabled at boot (if configured).