ITPLT-2247 allow the option to pull installer from a location requiring basic_auth

This commit is contained in:
bmeehan
2022-11-01 17:16:47 +11:00
parent 7b760e327a
commit e8b2419444

View File

@@ -178,13 +178,19 @@
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.