Allow overriding php_fpm_daemon

This commit is contained in:
Thom Toogood 2015-12-07 12:07:26 +11:00
parent ce8d9cad35
commit 528ab01605
3 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,11 @@
when: php_opcache_enable
notify: restart webserver
- name: Define php_fpm_daemon.
set_fact:
php_fpm_daemon: "{{ __php_fpm_daemon }}"
when: php_fpm_daemon is not defined
- name: Ensure php-fpm is started and enabled at boot (if configured).
service:
name: "{{ php_fpm_daemon }}"

View File

@ -20,4 +20,4 @@ __php_extension_conf_path: "{{ __php_conf_path }}/conf.d"
__php_apc_conf_filename: 20-apc.ini
__php_opcache_conf_filename: 05-opcache.ini
php_fpm_daemon: php5-fpm
__php_fpm_daemon: php5-fpm

View File

@ -21,4 +21,4 @@ php_extension_conf_path: /etc/php.d
__php_apc_conf_filename: apc.ini
__php_opcache_conf_filename: opcache.ini
php_fpm_daemon: php-fpm
__php_fpm_daemon: php-fpm