Force owner and permissions for get_url retrieved
files. get_url doesn't honor owner and mode is spotty.
This commit is contained in:
parent
359e55f6e4
commit
e7d5b7af67
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue