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:
Jeff Geerling 2016-04-11 20:26:21 -05:00
commit 4c890b2ddb

View File

@ -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