Skip to content

Commit 6f0fe82

Browse files
talekRendanic
authored andcommitted
oradb_tzupgrade: better naming for subtasks
1 parent 217c441 commit 6f0fe82

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

roles/oradb_tzupgrade/tasks/cdb.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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
33
opitzconsulting.ansible_oracle.oracle_sqldba:
44
catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_check.sql"
55
creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}"
@@ -10,7 +10,7 @@
1010
become_user: "{{ oracle_user }}"
1111
become: true
1212

13-
- name: oradb_tzupgrade | Upgrade timezone for CDB$ROOT and PDB$SEED
13+
- name: cdb | Upgrade timezone for CDB$ROOT and PDB$SEED
1414
opitzconsulting.ansible_oracle.oracle_sqldba:
1515
catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_apply.sql"
1616
creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}"
@@ -21,7 +21,7 @@
2121
become_user: "{{ oracle_user }}"
2222
become: true
2323

24-
- name: oradb_tzupgrade | Get all open PDBs
24+
- name: cdb | Get all open PDBs
2525
opitzconsulting.ansible_oracle.oracle_sqldba:
2626
sqlselect: >-
2727
select name pdb_list
@@ -33,19 +33,19 @@
3333
become: true
3434
register: pdbs_info
3535

36-
- name: oradb_tzupgrade | Set facts for pdbs_info
36+
- name: cdb | Set facts for pdbs_info
3737
ansible.builtin.set_fact:
3838
_oradb_tzupgrade_candidate_pdbs: "{{ pdbs_info.state.ROW | map(attribute='PDB_LIST') | list | join(' ') }}"
3939

40-
- name: oradb_tzupgrade | Show facts for pdbs_info
40+
- name: cdb | Show facts for pdbs_info
4141
ansible.builtin.debug:
4242
msg: "Candidate PDBs: {{ _oradb_tzupgrade_candidate_pdbs }}"
4343

44-
- name: oradb_tzupgrade | Upgrade timezone
44+
- name: cdb | Upgrade timezone
4545
when: _oradb_tzupgrade_candidate_pdbs != ""
4646
block:
4747

48-
- name: oradb_tzupgrade | Perform timezone checks for the candidate PDBs
48+
- name: cdb | Perform timezone checks for the candidate PDBs
4949
opitzconsulting.ansible_oracle.oracle_sqldba:
5050
catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_check.sql"
5151
creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}"
@@ -56,7 +56,7 @@
5656
become_user: "{{ oracle_user }}"
5757
become: true
5858

59-
- name: oradb_tzupgrade | Upgrade timezone for the candidate PDBs
59+
- name: cdb | Upgrade timezone for the candidate PDBs
6060
opitzconsulting.ansible_oracle.oracle_sqldba:
6161
catcon_pl: "{{ _oracle_home_db }}/rdbms/admin/utltz_upg_apply.sql"
6262
creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}"
@@ -67,7 +67,7 @@
6767
become_user: "{{ oracle_user }}"
6868
become: true
6969

70-
- name: oradb_tzupgrade | Get post upgrade timezone status info
70+
- name: cdb | Get post upgrade timezone status info
7171
opitzconsulting.ansible_oracle.oracle_sqldba:
7272
sql: |
7373
set tab off
@@ -91,6 +91,6 @@
9191
changed_when: false
9292
register: post_status_info
9393

94-
- name: oradb_tzupgrade | Show post upgrade timezone status info
94+
- name: cdb | Show post upgrade timezone status info
9595
ansible.builtin.debug:
9696
msg: "{{ post_status_info.msg | split('\n') }}"

roles/oradb_tzupgrade/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: oradb_tzupgrade | Loop over oracle_databases
2+
- name: Loop over oracle_databases
33
ansible.builtin.include_tasks: >-
44
{{ odb.is_container | default(false) | ternary('cdb', 'non_cdb') }}.yml
55
with_items:

roles/oradb_tzupgrade/tasks/non_cdb.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: oradb_tzupgrade | Perform timezone checks for a non-CDB database
2+
- name: non_cdb | Perform timezone checks for a non-CDB database
33
opitzconsulting.ansible_oracle.oracle_sqldba:
44
sql: "@?/rdbms/admin/utltz_upg_check.sql"
55
creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}"
@@ -8,7 +8,7 @@
88
become: true
99
become_user: "{{ oracle_user }}"
1010

11-
- name: oradb_tzupgrade | Apply the timezone upgrade for the non-CDB database
11+
- name: non_cdb | Apply the timezone upgrade for the non-CDB database
1212
opitzconsulting.ansible_oracle.oracle_sqldba:
1313
sql: "@?/rdbms/admin/utltz_upg_apply.sql"
1414
creates_sql: "{{ _oradb_tzupgrade_tz_check_query }}"
@@ -17,7 +17,7 @@
1717
become: true
1818
become_user: "{{ oracle_user }}"
1919

20-
- name: oradb_tzupgrade | Get post upgrade timezone status info
20+
- name: non_cdb | Get post upgrade timezone status info
2121
opitzconsulting.ansible_oracle.oracle_sqldba:
2222
sql: |
2323
set lines 200
@@ -35,6 +35,6 @@
3535
changed_when: false
3636
register: post_status_info
3737

38-
- name: oradb_tzupgrade | Show post upgrade timezone status info
38+
- name: non_cdb | Show post upgrade timezone status info
3939
ansible.builtin.debug:
4040
msg: "{{ post_status_info.msg | split('\n') }}"

0 commit comments

Comments
 (0)