Merge pull request #103 from rackn/perm-fix

Force owner and permissions for get_url retrieved files.
pull/104/merge
Antoine Legrand 2016-01-25 22:01:57 +01:00
commit ef7cf3bf11
1 changed files with 12 additions and 3 deletions

View File

@ -19,3 +19,12 @@
copy: no
when: "{{item.unarchive is defined and item.unarchive == True}}"
with_items: downloads
- name: Fix permissions
file:
state: file
path: "{{local_release_dir}}/{{item.dest}}"
owner: "{{ item.owner|default(omit) }}"
mode: "{{ item.mode|default(omit) }}"
when: "{{item.unarchive is not defined or item.unarchive == False}}"
with_items: downloads