Delete default pool if necessary (#10)

(when default pool 'www' not in pool list)
This commit is contained in:
Emilien M
2019-04-19 14:36:35 +02:00
committed by GitHub
parent 5abe99568a
commit 75f09eaf59
2 changed files with 8 additions and 1 deletions

View File

@@ -27,3 +27,10 @@
dest: '{{ php_fpm_pool_dir }}/{{ item.pool_name }}.conf'
loop: "{{ php_fpm_poold }}"
notify: restart php-fpm
- name: FILE | Delete default pool if necessary
file:
path: "{{ php_fpm_pool_dir }}/www.conf"
state: absent
when: '"www" not in (php_fpm_poold | map(attribute="pool_name") | list)'
notify: restart php-fpm