From cbc252ef70109c2c544ab31461452147b8cbec95 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 11 Apr 2016 20:27:47 -0500 Subject: [PATCH] PR #109 Cleanup. --- tasks/configure-fpm.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/configure-fpm.yml b/tasks/configure-fpm.yml index e4d45af..6d3b761 100644 --- a/tasks/configure-fpm.yml +++ b/tasks/configure-fpm.yml @@ -9,18 +9,19 @@ 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 }} +- name: Stat php_fpm_pool_conf_path + 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 owner: root group: root mode: 0755 + when: php_fpm_pool_conf_path_dir_stat.stat.islnk is not defined - name: Ensure the default pool exists. copy: