Skip to content

Commit

Permalink
Don't destroy directories
Browse files Browse the repository at this point in the history
  • Loading branch information
rricard committed Sep 6, 2014
1 parent 450caf4 commit 1c58252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1c58252

Please sign in to comment.