Allow php_webserver_daemon to be overridden.

This commit is contained in:
Jeff Geerling 2014-11-10 14:38:41 -06:00
parent 24a2fbb34e
commit 084e14b422
4 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,6 @@ php_apc_cache_by_default: "1"
php_apc_shm_size: "96M"
php_date_timezone: "America/Chicago"
php_enable_webserver: true
php_webserver_daemon: "httpd"
php_enable_php_fpm: false
php_enable_apc: true

View File

@ -7,6 +7,11 @@
php_packages: "{{ __php_packages | list }}"
when: php_packages is not defined
- name: Define php_webserver_daemon.
set_fact:
php_webserver_daemon: "{{ __php_webserver_daemon | list }}"
when: php_webserver_daemon is not defined
- name: Ensure PHP packages are installed (RedHat).
yum:
name: "{{ item }}"

View File

@ -13,4 +13,4 @@ __php_packages:
- php5-fpm
- php5-gd
- php-pear
php_webserver_daemon: "apache2"
__php_webserver_daemon: "apache2"

View File

@ -18,4 +18,4 @@ __php_packages:
- php-pecl-apc
- php-xml
- php-xmlrpc
php_webserver_daemon: "httpd"
__php_webserver_daemon: "httpd"