1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/ansistrano.deploy/tasks/update-code/download.yml

14 lines
585 B
YAML
Raw Permalink Normal View History

2022-05-02 17:37:08 +02:00
---
- name: ANSISTRANO | download | Create release folder
file:
state: directory
path: "{{ ansistrano_release_path.stdout }}"
# We should be able to remove default(omit) filters and add defaults once we deprecate Ansible 1.9
- name: ANSISTRANO | download | Download artifact
get_url:
url: "{{ ansistrano_get_url }}"
dest: "{{ ansistrano_release_path.stdout }}/{{ ansistrano_get_url | urlsplit('path') | basename }}"
force_basic_auth: "{{ ansistrano_download_force_basic_auth | default(omit) }}"
headers: "{{ ansistrano_download_headers | default(omit) }}"