-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #665 from ministryofjustice/oasys_db_refresh_2
Corrected spool file name same as db name
- Loading branch information
Showing
5 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ansible/roles/oracle-db-refresh/tasks/oracle_db_restore.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Check if TARGET_DB is defined | ||
fail: | ||
msg: "TARGET_DB is not defined" | ||
when: TARGET_DB == "" | ||
|
||
- name: Check if SOURCE_DB is defined | ||
fail: | ||
msg: "SOURCE_DB is not defined" | ||
when: SOURCE_DB == "" | ||
|
||
- name: Copy the latest backup control file handle details to the runner | ||
fetch: | ||
src: "{{ lookup('env','GITHUB_WORKSPACE') | default('/tmp', true) }}/{{ SOURCE_DB }}_control.txt" | ||
dest: "/tmp/{{ TARGET_DB }}_control.txt" | ||
flat: yes | ||
fail_on_missing: yes |
4 changes: 2 additions & 2 deletions
4
ansible/roles/oracle-db-refresh/templates/get_latest_backup_control_file.sql.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.