mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Issue #17: Fix for proper configuration paths in Debian/Ubuntu for apache2.
This commit is contained in:
parent
d3e2ac586f
commit
6b5693fd73
@ -18,11 +18,6 @@
|
|||||||
php_conf_path: "{{ __php_conf_path }}"
|
php_conf_path: "{{ __php_conf_path }}"
|
||||||
when: php_conf_path is not defined
|
when: php_conf_path is not defined
|
||||||
|
|
||||||
- name: Define php_extension_conf_path.
|
|
||||||
set_fact:
|
|
||||||
php_extension_conf_path: "{{ __php_extension_conf_path }}"
|
|
||||||
when: php_extension_conf_path is not defined
|
|
||||||
|
|
||||||
# Setup/install tasks.
|
# Setup/install tasks.
|
||||||
- include: setup-RedHat.yml
|
- include: setup-RedHat.yml
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
@ -14,7 +14,7 @@ __php_webserver_daemon: "apache2"
|
|||||||
|
|
||||||
# Vendor-specific configuration paths on Debian/Ubuntu make my brain asplode.
|
# Vendor-specific configuration paths on Debian/Ubuntu make my brain asplode.
|
||||||
__php_conf_path: "{{ '/etc/php5' if php_webserver_daemon and php_webserver_daemon != 'apache2' else '/etc/php5/apache2' }}"
|
__php_conf_path: "{{ '/etc/php5' if php_webserver_daemon and php_webserver_daemon != 'apache2' else '/etc/php5/apache2' }}"
|
||||||
__php_extension_conf_path: "{{ __php_conf_path }}/conf.d"
|
php_extension_conf_path: "/etc/php5/conf.d"
|
||||||
|
|
||||||
php_apc_conf_filename: 20-apc.ini
|
php_apc_conf_filename: 20-apc.ini
|
||||||
php_fpm_daemon: php5-fpm
|
php_fpm_daemon: php5-fpm
|
||||||
|
@ -18,7 +18,7 @@ __php_packages:
|
|||||||
__php_webserver_daemon: "httpd"
|
__php_webserver_daemon: "httpd"
|
||||||
|
|
||||||
__php_conf_path: /etc
|
__php_conf_path: /etc
|
||||||
__php_extension_conf_path: /etc/php.d
|
php_extension_conf_path: /etc/php.d
|
||||||
|
|
||||||
php_apc_conf_filename: apc.ini
|
php_apc_conf_filename: apc.ini
|
||||||
php_fpm_daemon: php-fpm
|
php_fpm_daemon: php-fpm
|
||||||
|
Loading…
Reference in New Issue
Block a user