|
1 | 1 | --- |
2 | | -- name: oradb_tzupgrade | Perform timezone checks for CDB$ROOT and PDB$SEED first |
| 2 | +- name: cdb | Perform timezone checks for CDB$ROOT and PDB$SEED first |
3 | 3 | opitzconsulting.ansible_oracle.oracle_sqldba: |
4 | 4 | catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_check.sql" |
5 | 5 | creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}" |
|
10 | 10 | become_user: "{{ oracle_user }}" |
11 | 11 | become: true |
12 | 12 |
|
13 | | -- name: oradb_tzupgrade | Upgrade timezone for CDB$ROOT and PDB$SEED |
| 13 | +- name: cdb | Upgrade timezone for CDB$ROOT and PDB$SEED |
14 | 14 | opitzconsulting.ansible_oracle.oracle_sqldba: |
15 | 15 | catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_apply.sql" |
16 | 16 | creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}" |
|
21 | 21 | become_user: "{{ oracle_user }}" |
22 | 22 | become: true |
23 | 23 |
|
24 | | -- name: oradb_tzupgrade | Get all open PDBs |
| 24 | +- name: cdb | Get all open PDBs |
25 | 25 | opitzconsulting.ansible_oracle.oracle_sqldba: |
26 | 26 | sqlselect: >- |
27 | 27 | select name pdb_list |
|
33 | 33 | become: true |
34 | 34 | register: pdbs_info |
35 | 35 |
|
36 | | -- name: oradb_tzupgrade | Set facts for pdbs_info |
| 36 | +- name: cdb | Set facts for pdbs_info |
37 | 37 | ansible.builtin.set_fact: |
38 | 38 | _oradb_tzupgrade_candidate_pdbs: "{{ pdbs_info.state.ROW | map(attribute='PDB_LIST') | list | join(' ') }}" |
39 | 39 |
|
40 | | -- name: oradb_tzupgrade | Show facts for pdbs_info |
| 40 | +- name: cdb | Show facts for pdbs_info |
41 | 41 | ansible.builtin.debug: |
42 | 42 | msg: "Candidate PDBs: {{ _oradb_tzupgrade_candidate_pdbs }}" |
43 | 43 |
|
44 | | -- name: oradb_tzupgrade | Upgrade timezone |
| 44 | +- name: cdb | Upgrade timezone |
45 | 45 | when: _oradb_tzupgrade_candidate_pdbs != "" |
46 | 46 | block: |
47 | 47 |
|
48 | | - - name: oradb_tzupgrade | Perform timezone checks for the candidate PDBs |
| 48 | + - name: cdb | Perform timezone checks for the candidate PDBs |
49 | 49 | opitzconsulting.ansible_oracle.oracle_sqldba: |
50 | 50 | catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_check.sql" |
51 | 51 | creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}" |
|
56 | 56 | become_user: "{{ oracle_user }}" |
57 | 57 | become: true |
58 | 58 |
|
59 | | - - name: oradb_tzupgrade | Upgrade timezone for the candidate PDBs |
| 59 | + - name: cdb | Upgrade timezone for the candidate PDBs |
60 | 60 | opitzconsulting.ansible_oracle.oracle_sqldba: |
61 | 61 | catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_apply.sql" |
62 | 62 | creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}" |
|
67 | 67 | become_user: "{{ oracle_user }}" |
68 | 68 | become: true |
69 | 69 |
|
70 | | -- name: oradb_tzupgrade | Get post upgrade timezone status info |
| 70 | +- name: cdb | Get post upgrade timezone status info |
71 | 71 | opitzconsulting.ansible_oracle.oracle_sqldba: |
72 | 72 | sql: | |
73 | 73 | set tab off |
|
91 | 91 | changed_when: false |
92 | 92 | register: post_status_info |
93 | 93 |
|
94 | | -- name: oradb_tzupgrade | Show post upgrade timezone status info |
| 94 | +- name: cdb | Show post upgrade timezone status info |
95 | 95 | ansible.builtin.debug: |
96 | 96 | msg: "{{ post_status_info.msg | split('\n') }}" |
0 commit comments