mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-01-24 21:41:21 +01:00
Merge pull request #109 from robruma/bugfix/php-fpm_default_pool_dir_check
Obtaining php-fpm pool directory status and creating only if the directory does not exist
This commit is contained in:
commit
4c890b2ddb
@ -9,7 +9,12 @@
|
||||
php_fpm_pool_conf_path: "{{ __php_fpm_pool_conf_path }}"
|
||||
when: php_fpm_pool_conf_path is not defined
|
||||
|
||||
- name: Obtain status of {{ php_fpm_pool_conf_path | dirname }}
|
||||
stat: path={{ php_fpm_pool_conf_path | dirname }}
|
||||
register: php_fpm_pool_conf_path_dir_stat
|
||||
|
||||
- name: Ensure the default pool directory exists.
|
||||
when: php_fpm_pool_conf_path_dir_stat.stat.islnk is not defined
|
||||
file:
|
||||
path: "{{ php_fpm_pool_conf_path | dirname }}"
|
||||
state: directory
|
||||
|
Loading…
Reference in New Issue
Block a user