DCD-686: Correct scheme lookup.

This commit is contained in:
Steve Smith
2019-10-03 11:48:47 +10:00
parent 79fd9e5db9
commit 347bdab24d

View File

@@ -17,12 +17,12 @@
bucket: "{{ atl_backup_manifest_bucket }}" bucket: "{{ atl_backup_manifest_bucket }}"
object: "{{ atl_backup_manifest_path }}" object: "{{ atl_backup_manifest_path }}"
dest: "{{ atl_backup_manifest_dest }}" dest: "{{ atl_backup_manifest_dest }}"
when: atl_backup_manifest_scheme == 's3' when: atl_backup_manifest_url.scheme == 's3'
- name: Fetch the manifest from remote host - name: Fetch the manifest from remote host
get_url: get_url:
url: "{{ atl_backup_manifest_url }}" url: "{{ atl_backup_manifest_url }}"
dest: "{{ atl_backup_manifest_dest }}" dest: "{{ atl_backup_manifest_dest }}"
when: atl_backup_manifest_scheme != 's3' when: atl_backup_manifest_url.scheme != 's3'
when: atl_backup_manifest_url is defined and atl_backup_manifest_url != '' when: atl_backup_manifest_url is defined and atl_backup_manifest_url != ''