Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for _oradb_tzupgrade_candidate_pdbs fact #490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/tz_cdb_upgrade_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- set and check _oradb_tzupgrade_candidate_pdbs fact when upgrading timezone for a CDB database
4 changes: 2 additions & 2 deletions roles/oradb_tzupgrade/tasks/cdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@

- name: oradb_tzupgrade | Set facts for pdbs_info
ansible.builtin.set_fact:
candidate_pdbs: "{{ pdbs_info.state.ROW[0].PDB_LIST | default('') }}"
_oradb_tzupgrade_candidate_pdbs: "{{ pdbs_info.state.ROW[0].PDB_LIST | default('') }}"

- name: oradb_tzupgrade | Show facts for pdbs_info
ansible.builtin.debug:
msg: "Candidate PDBs: {{ _oradb_tzupgrade_candidate_pdbs }}"

- name: oradb_tzupgrade | Upgrade timezone
when: candidate_pdbs != ""
when: _oradb_tzupgrade_candidate_pdbs != ""
block:

- name: oradb_tzupgrade | Perform timezone checks for the candidate PDBs
Expand Down
Loading