|
@ -14,8 +14,17 @@ |
|
|
|
|
|
|
|
|
- name: Extract archives |
|
|
- name: Extract archives |
|
|
unarchive: |
|
|
unarchive: |
|
|
src: "{{ local_release_dir }}/{{item.dest}}" |
|
|
|
|
|
dest: "{{ local_release_dir }}/{{item.dest|dirname}}" |
|
|
|
|
|
copy: no |
|
|
|
|
|
|
|
|
src: "{{ local_release_dir }}/{{item.dest}}" |
|
|
|
|
|
dest: "{{ local_release_dir }}/{{item.dest|dirname}}" |
|
|
|
|
|
copy: no |
|
|
when: "{{item.unarchive is defined and item.unarchive == True}}" |
|
|
when: "{{item.unarchive is defined and item.unarchive == True}}" |
|
|
with_items: downloads |
|
|
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 |