From 1c5825247a815b84a9547db56436cc60e7a50cc0 Mon Sep 17 00:00:00 2001 From: Robin Ricard Date: Sat, 6 Sep 2014 15:08:16 +0200 Subject: [PATCH] Don't destroy directories --- tasks/clone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/clone.yml b/tasks/clone.yml index 18971ce..e2baf46 100644 --- a/tasks/clone.yml +++ b/tasks/clone.yml @@ -19,10 +19,10 @@ - name: fix user acl on clone_dir and clean up install_dir file: path={{ item.path }} state={{ item.state|default('directory') }} - owner={{ ansible_user_id }} group=staff mode={{ item.mode|default('0664') }} + owner={{ ansible_user_id }} group=staff mode={{ item.mode|default('0775') }} with_items: - { path: '{{ clone_dir }}' } - - { path: '{{ clone_dir }}/bin', mode: '0775' } + - { path: '{{ clone_dir }}/bin' } - { path: '{{ install_dir }}' , state: 'absent' } when: brew_installed.stat.exists == false