Skip to content

Commit

Permalink
fix for _oradb_tzupgrade_candidate_pdbs fact
Browse files Browse the repository at this point in the history
  • Loading branch information
talek authored and Rendanic committed Oct 30, 2024
1 parent ce4509f commit a6a18eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit a6a18eb

Please sign in to comment.