Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 committed Apr 22, 2024
1 parent 0175535 commit a35085b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
exit 1
fi
- name: Copy the latest backup control file handle detail to the runner
fetch:
src: "/tmp/{{ SOURCE_DB }}_control.txt"
dest: "{{ lookup('env','GITHUB_WORKSPACE') | default('/tmp', true) }}/{{ TARGET_DB }}_control.txt"
flat: yes
fail_on_missing: yes
# - name: Copy the latest backup control file handle detail to the runner
# fetch:
# src: "/tmp/{{ SOURCE_DB }}_control.txt"
# dest: "{{ lookup('env','GITHUB_WORKSPACE') | default('/tmp', true) }}/{{ TARGET_DB }}_control.txt"
# flat: yes
# fail_on_missing: yes

- name: Remove the control file and SQL script
file:
Expand Down
12 changes: 6 additions & 6 deletions ansible/roles/oracle-db-refresh/tasks/oracle_db_restore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
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) }}/{{ TARGET_DB }}_control.txt"
dest: "/tmp/{{ TARGET_DB }}_control.txt"
flat: yes
fail_on_missing: yes
# - name: Copy the latest backup control file handle details to the runner
# fetch:
# src: "{{ lookup('env','GITHUB_WORKSPACE') | default('/tmp', true) }}/{{ TARGET_DB }}_control.txt"
# dest: "/tmp/{{ TARGET_DB }}_control.txt"
# flat: yes
# fail_on_missing: yes

0 comments on commit a35085b

Please sign in to comment.