mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
ITPLT-2247 allow the option to pull installer from a location requiring basic_auth
This commit is contained in:
@@ -177,14 +177,20 @@
|
|||||||
- name: download_binary is true so fetch and do all the things
|
- name: download_binary is true so fetch and do all the things
|
||||||
block:
|
block:
|
||||||
|
|
||||||
# Fetch binary and copy to temp
|
# Fetch binary and copy to temp
|
||||||
|
# optionally grab basic_auth creds from secrets_manager secret called 'download_atlassian'
|
||||||
- name: Fetch binary
|
- name: Fetch binary
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ atl_product_download_url }}"
|
url: "{{ atl_product_download_url }}"
|
||||||
dest: "{{ atl_product_temp_download }}"
|
dest: "{{ atl_product_temp_download }}"
|
||||||
|
url_password: "{{ lookup('amazon.aws.aws_secret', passwordpath, region=ansible_ec2_placement_region, bypath=false, nested=true, on_denied='skip', on_missing='skip') }}"
|
||||||
|
url_username: "{{ lookup('amazon.aws.aws_secret', userpath, region=ansible_ec2_placement_region, bypath=false, nested=true, on_denied='skip', on_missing='skip') }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
force: false
|
force: false
|
||||||
register: atl_product_completed
|
register: atl_product_completed
|
||||||
|
vars:
|
||||||
|
passwordpath: "download_atlassian.password"
|
||||||
|
userpath: "download_atlassian.username"
|
||||||
|
|
||||||
# If product installer was fetched make the lock directory
|
# If product installer was fetched make the lock directory
|
||||||
- name: Create moving_lock.
|
- name: Create moving_lock.
|
||||||
|
|||||||
Reference in New Issue
Block a user