DCD-686: Use dict var to store results of urlsplit

This commit is contained in:
Varun Arbatti
2019-11-26 15:23:51 +11:00
parent 7b7daf153c
commit b58deab2c3

View File

@@ -29,13 +29,13 @@
- name: Parse the manifest URL
set_fact:
atl_backup_manifest_url: "{{ atl_backup_manifest_url | urlsplit }}"
atl_backup_manifest_dict: "{{ 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 }}"
atl_backup_manifest_bucket: "{{ atl_backup_manifest_dict.hostname }}"
atl_backup_manifest_path: "{{ atl_backup_manifest_dict.path }}"
atl_backup_manifest_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest_dict.path | basename }}"
- name: Fetch the manifest from S3
aws_s3: