-
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.
Update oracle-restore-point to use secrets (#428)
- Loading branch information
1 parent
55ae41b
commit f65dc72
Showing
6 changed files
with
67 additions
and
83 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
25 changes: 25 additions & 0 deletions
25
ansible/roles/oracle-restore-point/tasks/create_restore_point.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
27 changes: 27 additions & 0 deletions
27
ansible/roles/oracle-restore-point/tasks/drop_restore_point.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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,30 @@ | ||
--- | ||
- name: Get facts for playbook execution | ||
ansible.builtin.import_tasks: get_facts.yml | ||
tags: | ||
- always | ||
|
||
- name: Create restore point on databases specified by TNS | ||
ansible.builtin.include_tasks: | ||
file: create_restore_point.yml | ||
apply: | ||
tags: | ||
- create_restore_point | ||
- never | ||
loop_control: | ||
loop_var: db_name | ||
loop: "{{ db_tns_list.split(',') }}" | ||
when: db_server_file.stat.exists and db_tns_list is defined and restore_point_name is defined and action == "create" | ||
tags: | ||
- create_restore_point | ||
- never | ||
when: db_tns_list is defined and restore_point_name is defined | ||
|
||
- name: Drop restore point from databases specified by TNS | ||
ansible.builtin.include_tasks: | ||
file: drop_restore_point.yml | ||
apply: | ||
tags: | ||
- drop_restore_point | ||
- never | ||
loop_control: | ||
loop_var: db_name | ||
loop: "{{ db_tns_list.split(',') }}" | ||
when: db_server_file.stat.exists and db_tns_list is defined and restore_point_name is defined and action == "drop" | ||
tags: | ||
- drop_restore_point | ||
- never | ||
when: db_tns_list is defined and restore_point_name is defined |