mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-02-28 09:42:09 +07:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
746b05ca4a | ||
|
|
b4afb45dd4 |
@@ -22,6 +22,7 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
loop: "{{ php_ini | combine(php_ini_fpm) | dict2items }}"
|
||||
when: php_install_fpm | bool
|
||||
notify: Restart php-fpm
|
||||
|
||||
- name: TEMPLATE | Deploy pool configuration
|
||||
@@ -32,11 +33,14 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
loop: "{{ ansible_local.hanxhx_php.fpm_pool }}"
|
||||
when: php_install_fpm | bool
|
||||
notify: Restart php-fpm
|
||||
|
||||
- name: FILE | Delete default pool if necessary
|
||||
ansible.builtin.file:
|
||||
path: "{{ php_fpm_pool_dir }}/www.conf"
|
||||
state: absent
|
||||
when: '"www" not in (ansible_local.hanxhx_php.fpm_pool | map(attribute="name") | list) and php_autoremove_default_pool'
|
||||
when:
|
||||
- '"www" not in (ansible_local.hanxhx_php.fpm_pool | map(attribute="name") | list) and php_autoremove_default_pool'
|
||||
- php_install_fpm | bool
|
||||
notify: Restart php-fpm
|
||||
|
||||
@@ -421,13 +421,19 @@ catch_workers_output = {{ item.catch_workers_output | default('no') }}
|
||||
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
||||
;php_admin_flag[log_errors] = on
|
||||
;php_admin_value[memory_limit] = 32M
|
||||
{% if item.php_env is defined %}
|
||||
{% for k, v in item.php_env.items() | list %}
|
||||
env[{{ k }}] = {{ v }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.php_value is defined %}
|
||||
{% for k, v in item.php_value.items() | list %}
|
||||
php_value[{{ k }}] = {{ v }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if item.php_admin_value is defined %}
|
||||
{% for k, v in item.php_admin_value.items() | list %}
|
||||
php_admin_value[{{ k }}] = {{ v }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
; vim:filetype=dosini
|
||||
|
||||
Reference in New Issue
Block a user