mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-04-19 13:52:09 +07:00
Split php.ini config for CLI/FPM
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
|
||||
- name: LINEINFILE | PHP configuration
|
||||
lineinfile: dest=/etc/php5/fpm/php.ini regexp='^;?{{ item.key }}' line='{{ item.key }} = {{ item.value }}'
|
||||
with_items: php_ini
|
||||
with_flattened:
|
||||
- php_ini
|
||||
- php_ini_fpm
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: TEMPLATE | Deploy pool configuration
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
include: fpm.yml
|
||||
when: php_install_fpm
|
||||
|
||||
- name: LINEINFILE | PHP configuration
|
||||
lineinfile: dest=/etc/php5/cli/php.ini regexp='^;?{{ item.key }}' line='{{ item.key }} = {{ item.value }}'
|
||||
with_flattened:
|
||||
- php_ini
|
||||
- php_ini_cli
|
||||
|
||||
- name: INCLUDE | Xdebug
|
||||
include: xdebug.yml
|
||||
when: php_install_xdebug
|
||||
|
||||
Reference in New Issue
Block a user