mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-04-15 13:32:09 +07:00
Optimize ini configuration
This commit is contained in:
@@ -4,13 +4,11 @@
|
||||
apt: pkg={{ php_fpm_service }} state=present
|
||||
|
||||
- name: LINEINFILE | PHP configuration
|
||||
lineinfile: >
|
||||
dest='{{ php_etc_dir }}/fpm/php.ini'
|
||||
regexp='^;?{{ item.key }}'
|
||||
line='{{ item.key }} = {{ item.value }}'
|
||||
with_flattened:
|
||||
- "{{ php_ini }}"
|
||||
- "{{ php_ini_fpm }}"
|
||||
lineinfile:
|
||||
dest: '{{ php_etc_dir }}/fpm/php.ini'
|
||||
regexp: '^;?{{ item.key }}'
|
||||
line: '{{ item.key }} = {{ item.value }}'
|
||||
with_dict: "{{ php_ini | combine(php_ini_fpm) }}"
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: TEMPLATE | Deploy pool configuration
|
||||
|
||||
@@ -26,13 +26,11 @@
|
||||
when: php_install_fpm
|
||||
|
||||
- name: LINEINFILE | PHP configuration
|
||||
lineinfile: >
|
||||
dest='{{ php_etc_dir }}/cli/php.ini'
|
||||
regexp='^;?{{ item.key }}'
|
||||
line='{{ item.key }} = {{ item.value }}'
|
||||
with_flattened:
|
||||
- "{{ php_ini }}"
|
||||
- "{{ php_ini_cli }}"
|
||||
lineinfile:
|
||||
dest: '{{ php_etc_dir }}/cli/php.ini'
|
||||
regexp: '^;?{{ item.key }}'
|
||||
line: '{{ item.key }} = {{ item.value }}'
|
||||
with_dict: "{{ php_ini_cli }}"
|
||||
|
||||
- name: INCLUDE | Xdebug
|
||||
include: xdebug.yml
|
||||
|
||||
Reference in New Issue
Block a user