From 3782e76a07cfd5246894ed8048e4ac63ed4a616d Mon Sep 17 00:00:00 2001 From: Ricardo Oliveira Date: Tue, 2 Sep 2014 15:18:42 +0100 Subject: [PATCH 1/2] make apc optional --- tasks/main.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7c519d9..a6d36d4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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). From 88861a8dff7364e59471e4a16191bb680faf7b44 Mon Sep 17 00:00:00 2001 From: Ricardo Oliveira Date: Tue, 2 Sep 2014 15:19:08 +0100 Subject: [PATCH 2/2] add option for apc --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/defaults/main.yml b/defaults/main.yml index 9229248..a3565fa 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,5 +12,6 @@ php_enable_webserver: true php_webserver_daemon: "httpd" php_enable_php_fpm: false +php_enable_apc: true php_sendmail_path: "/usr/sbin/sendmail -t -i"