mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Allow php_webserver_daemon to be overridden.
This commit is contained in:
parent
24a2fbb34e
commit
084e14b422
@ -9,7 +9,6 @@ php_apc_cache_by_default: "1"
|
|||||||
php_apc_shm_size: "96M"
|
php_apc_shm_size: "96M"
|
||||||
php_date_timezone: "America/Chicago"
|
php_date_timezone: "America/Chicago"
|
||||||
php_enable_webserver: true
|
php_enable_webserver: true
|
||||||
php_webserver_daemon: "httpd"
|
|
||||||
|
|
||||||
php_enable_php_fpm: false
|
php_enable_php_fpm: false
|
||||||
php_enable_apc: true
|
php_enable_apc: true
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
php_packages: "{{ __php_packages | list }}"
|
php_packages: "{{ __php_packages | list }}"
|
||||||
when: php_packages is not defined
|
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).
|
- name: Ensure PHP packages are installed (RedHat).
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -13,4 +13,4 @@ __php_packages:
|
|||||||
- php5-fpm
|
- php5-fpm
|
||||||
- php5-gd
|
- php5-gd
|
||||||
- php-pear
|
- php-pear
|
||||||
php_webserver_daemon: "apache2"
|
__php_webserver_daemon: "apache2"
|
||||||
|
@ -18,4 +18,4 @@ __php_packages:
|
|||||||
- php-pecl-apc
|
- php-pecl-apc
|
||||||
- php-xml
|
- php-xml
|
||||||
- php-xmlrpc
|
- php-xmlrpc
|
||||||
php_webserver_daemon: "httpd"
|
__php_webserver_daemon: "httpd"
|
||||||
|
Loading…
Reference in New Issue
Block a user