mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-686: More tweaks to manifest handling.
This commit is contained in:
@@ -4,17 +4,19 @@
|
|||||||
|
|
||||||
- name: Parse the manifest URL
|
- name: Parse the manifest URL
|
||||||
set_fact:
|
set_fact:
|
||||||
atl_backup_manifest_scheme: "{{ atl_backup_manifest_url | urlsplit('scheme') }}"
|
atl_backup_manifest_url: "{{ atl_backup_manifest_url | urlsplit }}"
|
||||||
atl_backup_manifest_bucket: "{{ atl_backup_manifest_url | urlsplit('hostname') }}"
|
|
||||||
atl_backup_manifest_path: "{{ atl_backup_manifest_url | urlsplit('path') }}"
|
- name: Extract manifest file information
|
||||||
atl_backup_manifest_filename: "{{ atl_backup_manifest_path | basename}}"
|
set_fact:
|
||||||
atl_backup_manifest_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest_path | basename}}"
|
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
|
- name: Fetch the manifest from S3
|
||||||
aws_s3:
|
aws_s3:
|
||||||
bucket: "{{ atl_backup_manifest | urlsplit('hostname' }}"
|
bucket: "{{ atl_backup_manifest_bucket }}"
|
||||||
object: "{{ atl_backup_manifest | urlsplit('path' }}"
|
object: "{{ atl_backup_manifest_path }}"
|
||||||
dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest | urlsplit('path' | }}"
|
dest: "{{ atl_backup_manifest_dest }}"
|
||||||
when: atl_backup_manifest_scheme == 's3'
|
when: atl_backup_manifest_scheme == 's3'
|
||||||
|
|
||||||
- name: Fetch the manifest from remote host
|
- name: Fetch the manifest from remote host
|
||||||
|
|||||||
Reference in New Issue
Block a user