Option: autoremove default pool

pull/17/head
Emilien Mantel 2019-12-26 16:42:16 +01:00
parent ade8aaad9e
commit c0922f8430
3 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ php_install_fpm: true
php_install_xdebug: false php_install_xdebug: false
php_extra_packages: [] php_extra_packages: []
php_xdebug_package: null php_xdebug_package: null
php_autoremove_default_pool: false
# php.ini config # php.ini config
php_ini: php_ini:

View File

@ -32,5 +32,5 @@
file: file:
path: "{{ php_fpm_pool_dir }}/www.conf" path: "{{ php_fpm_pool_dir }}/www.conf"
state: absent state: absent
when: '"www" not in (ansible_local.hanxhx_php.fpm_pool | map(attribute="name") | list)' when: '"www" not in (ansible_local.hanxhx_php.fpm_pool | map(attribute="name") | list) and php_autoremove_default_pool'
notify: restart php-fpm notify: restart php-fpm

View File

@ -6,6 +6,7 @@
php_extra_packages: php_extra_packages:
- '{{ php_package_prefix }}pgsql' - '{{ php_package_prefix }}pgsql'
php_install_xdebug: true php_install_xdebug: true
php_autoremove_default_pool: true
php_ini_fpm: php_ini_fpm:
display_errors: 'Off' display_errors: 'Off'
php_ini_cli: php_ini_cli: