diff --git a/ansible/roles/csr-preprod-refresh/tasks/csr-adhoc-schema-refresh-from-prod.yml b/ansible/roles/csr-preprod-refresh/tasks/csr-adhoc-schema-refresh-from-prod.yml index f40989f50..541b9d3ea 100644 --- a/ansible/roles/csr-preprod-refresh/tasks/csr-adhoc-schema-refresh-from-prod.yml +++ b/ansible/roles/csr-preprod-refresh/tasks/csr-adhoc-schema-refresh-from-prod.yml @@ -1,5 +1,4 @@ --- - - name: create script directory ansible.builtin.file: path: "{{ item }}" @@ -18,4 +17,4 @@ group: oinstall mode: "0700" loop: - - "prod_adhoc_db_schemas_export.sh" \ No newline at end of file + - "prod_adhoc_db_schemas_export.sh" diff --git a/ansible/roles/csr-preprod-refresh/templates/csr_schema_refresh.sh.j2 b/ansible/roles/csr-preprod-refresh/templates/csr_schema_refresh.sh.j2 index 716d8f913..428224512 100755 --- a/ansible/roles/csr-preprod-refresh/templates/csr_schema_refresh.sh.j2 +++ b/ansible/roles/csr-preprod-refresh/templates/csr_schema_refresh.sh.j2 @@ -132,7 +132,7 @@ fi # ------------------------------------------------------------------------------ validate_datapump_file () { info "Download datapump file $SOURCE_DPFILE" -aws s3 cp s3://s3-bucket20230609110811735400000001/CSR_DB_REFRESH/${SOURCE_DPFILE} ${DPPATH}/ +aws s3 cp s3://{{ s3_bucket }}/${SOURCE_DPFILE} ${DPPATH}/ if [ -z $SOURCE_DPFILE ] then error "No datapump file specified" @@ -327,4 +327,4 @@ done # ------------------------------------------------------------------------------ recreate_schemas import_schemas -update_schema_passwords \ No newline at end of file +update_schema_passwords