DCD-686: Fix S3 download.

This commit is contained in:
Steve Smith
2019-10-03 11:52:34 +10:00
parent a3b3460f97
commit 89038fb7c0

View File

@@ -14,17 +14,16 @@
- name: Fetch the manifest from S3 - name: Fetch the manifest from S3
aws_s3: aws_s3:
mode: get
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 }}"
mode: 0600
when: atl_backup_manifest_url.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 }}"
mode: 0600
when: atl_backup_manifest_url.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 != ''