mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-30 13:03:26 +01:00
PR #109 Cleanup.
This commit is contained in:
parent
4c890b2ddb
commit
cbc252ef70
@ -9,18 +9,19 @@
|
|||||||
php_fpm_pool_conf_path: "{{ __php_fpm_pool_conf_path }}"
|
php_fpm_pool_conf_path: "{{ __php_fpm_pool_conf_path }}"
|
||||||
when: php_fpm_pool_conf_path is not defined
|
when: php_fpm_pool_conf_path is not defined
|
||||||
|
|
||||||
- name: Obtain status of {{ php_fpm_pool_conf_path | dirname }}
|
- name: Stat php_fpm_pool_conf_path
|
||||||
stat: path={{ php_fpm_pool_conf_path | dirname }}
|
stat:
|
||||||
|
path: "{{ php_fpm_pool_conf_path | dirname }}"
|
||||||
register: php_fpm_pool_conf_path_dir_stat
|
register: php_fpm_pool_conf_path_dir_stat
|
||||||
|
|
||||||
- name: Ensure the default pool directory exists.
|
- name: Ensure the default pool directory exists.
|
||||||
when: php_fpm_pool_conf_path_dir_stat.stat.islnk is not defined
|
|
||||||
file:
|
file:
|
||||||
path: "{{ php_fpm_pool_conf_path | dirname }}"
|
path: "{{ php_fpm_pool_conf_path | dirname }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
when: php_fpm_pool_conf_path_dir_stat.stat.islnk is not defined
|
||||||
|
|
||||||
- name: Ensure the default pool exists.
|
- name: Ensure the default pool exists.
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user