mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
30 lines
1015 B
YAML
30 lines
1015 B
YAML
---
|
|
|
|
- block:
|
|
|
|
- name: Parse the manifest URL
|
|
set_fact:
|
|
atl_backup_manifest_url: "{{ atl_backup_manifest_url | urlsplit }}"
|
|
|
|
- name: Extract manifest file information
|
|
set_fact:
|
|
atl_backup_manifest_bucket: "{{ atl_backup_manifest_url.hostname }}"
|
|
atl_backup_manifest_path: "{{ atl_backup_manifest_url.path }}"
|
|
atl_backup_manifest_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest_url.path | basename }}"
|
|
|
|
- name: Fetch the manifest from S3
|
|
aws_s3:
|
|
mode: get
|
|
bucket: "{{ atl_backup_manifest_bucket }}"
|
|
object: "{{ atl_backup_manifest_path }}"
|
|
dest: "{{ atl_backup_manifest_dest }}"
|
|
when: atl_backup_manifest_url.scheme == 's3'
|
|
|
|
- name: Fetch the manifest from remote host
|
|
get_url:
|
|
url: "{{ atl_backup_manifest_url }}"
|
|
dest: "{{ atl_backup_manifest_dest }}"
|
|
when: atl_backup_manifest_url.scheme != 's3'
|
|
|
|
when: atl_backup_manifest_url is defined and atl_backup_manifest_url != ''
|