|
1 | 1 | --- |
2 | 2 | - ansible.builtin.set_fact: # noqa unnamed-task |
3 | | - oracle_home_db: "{%- if db_homes_config[dbh.home]['oracle_home'] is defined -%} |
4 | | - {{ db_homes_config[dbh.home]['oracle_home'] }} |
5 | | - {%- else -%} |
6 | | - {{ oracle_base }}/{{ db_homes_config[dbh.home]['version'] }}/{{ db_homes_config[dbh.home]['home'] }} |
| 3 | + oracle_home_db: "{%- if db_homes_config[dbh.home]['oracle_home'] is defined -%}\ |
| 4 | + {{ db_homes_config[dbh.home]['oracle_home'] }}\ |
| 5 | + {%- else -%}\ |
| 6 | + {{ oracle_base }}/{{ db_homes_config[dbh.home]['version'] }}/{{ db_homes_config[dbh.home]['home'] }}\ |
7 | 7 | {%- endif -%}" |
8 | 8 |
|
9 | 9 | - ansible.builtin.debug: msg="Managing patches for {{ oracle_home_db }}" |
|
42 | 42 | - ocmconfig |
43 | 43 |
|
44 | 44 | - name: db_opatch | Remove unwanted patches from DB |
45 | | - oracle_opatch: |
46 | | - oracle_home={{ oracle_home_db }} |
47 | | - patch_base={{ oracle_patch_install }}/{{ db_version }}/{{ item.path | default (item.patchid) }}/ |
48 | | - patch_id={{ item.patchid }} |
49 | | - patch_version={{ item.patchversion | default(omit) }} |
50 | | - exclude_upi={{ item.excludeUPI | default(omit) }} |
51 | | - opatchauto=False |
52 | | - conflict_check=True |
53 | | - stop_processes={{ item.stop_processes | default(False) }} |
54 | | - ocm_response_file={{ ocm_response_file | default(omit) }} |
55 | | - output=verbose |
56 | | - state={{ item.state }} |
| 45 | + opitzconsulting.ansible_oracle.oracle_opatch: |
| 46 | + oracle_home: "{{ oracle_home_db }}" |
| 47 | + patch_base: "{{ oracle_patch_install }}/{{ db_version }}/{{ item.path | default(item.patchid) }}/" |
| 48 | + patch_id: "{{ item.patchid }}" |
| 49 | + patch_version: "{{ item.patchversion | default(omit) }}" |
| 50 | + exclude_upi: "{{ item.excludeUPI | default(omit) }}" |
| 51 | + opatchauto: false |
| 52 | + conflict_check: true |
| 53 | + stop_processes: "{{ item.stop_processes | default(False) }}" |
| 54 | + ocm_response_file: "{{ ocm_response_file | default(omit) }}" |
| 55 | + output: verbose |
| 56 | + state: "{{ item.state }}" |
57 | 57 | with_items: |
58 | 58 | - "{{ db_homes_config[dbh.home]['opatch'] }}" |
59 | 59 | become: true |
|
67 | 67 | register: psuapplym |
68 | 68 |
|
69 | 69 | - name: db_opatch | Manage opatchauto patches for DB (non-gi) |
70 | | - oracle_opatch: |
| 70 | + opitzconsulting.ansible_oracle.oracle_opatch: |
71 | 71 | oracle_home={{ oracle_home_db }} |
72 | 72 | patch_base={{ oracle_patch_install }}/{{ db_version }}/{{ item.0.path | default (item.0.patchid) }}/{{ item.1 }} |
73 | 73 | patch_id={{ item.1 }} |
|
91 | 91 | register: psuapplym |
92 | 92 |
|
93 | 93 | - name: db_opatch | Manage opatchauto patches for DB (gi) |
94 | | - oracle_opatch: |
95 | | - oracle_home={{ oracle_home_db }} |
96 | | - patch_base={{ oracle_patch_install }}/{{ db_version }}/{{ item.path | default (item.patchid) }}/ |
97 | | - patch_id={{ item.patchid }} |
98 | | - patch_version={{ item.patchversion | default(omit) }} |
99 | | - opatchauto=True |
100 | | - conflict_check=True |
101 | | - ocm_response_file={{ ocm_response_file | default(omit) }} |
102 | | - output=verbose |
103 | | - state={{ item.state }} |
| 94 | + opitzconsulting.ansible_oracle.oracle_opatch: |
| 95 | + oracle_home: "{{ oracle_home_db }}" |
| 96 | + patch_base: "{{ oracle_patch_install }}/{{ db_version }}/{{ item.path | default(item.patchid) }}/" |
| 97 | + patch_id: "{{ item.patchid }}" |
| 98 | + patch_version: "{{ item.patchversion | default(omit) }}" |
| 99 | + opatchauto: true |
| 100 | + conflict_check: true |
| 101 | + ocm_response_file: "{{ ocm_response_file | default(omit) }}" |
| 102 | + output: verbose |
| 103 | + state: "{{ item.state }}" |
104 | 104 | with_items: |
105 | 105 | - "{{ db_homes_config[dbh.home]['opatchauto'] }}" |
106 | 106 | # run_once: "{{ configure_cluster}}" |
|
111 | 111 | register: psuapplym |
112 | 112 |
|
113 | 113 | - name: db_opatch | Manage patches for DB |
114 | | - oracle_opatch: |
115 | | - oracle_home={{ oracle_home_db }} |
116 | | - patch_base={{ oracle_patch_install }}/{{ db_version }}/{{ item.path | default (item.patchid) }}/ |
117 | | - patch_id={{ item.patchid }} |
118 | | - patch_version={{ item.patchversion | default(omit) }} |
119 | | - exclude_upi={{ item.excludeUPI | default(omit) }} |
120 | | - opatchauto=False |
121 | | - conflict_check=True |
122 | | - stop_processes={{ item.stop_processes | default(False) }} |
123 | | - ocm_response_file={{ ocm_response_file | default(omit) }} |
124 | | - output=verbose |
125 | | - state={{ item.state }} |
| 114 | + opitzconsulting.ansible_oracle.oracle_opatch: |
| 115 | + oracle_home: "{{ oracle_home_db }}" |
| 116 | + patch_base: "{{ oracle_patch_install }}/{{ db_version }}/{{ item.path | default(item.patchid) }}/" |
| 117 | + patch_id: "{{ item.patchid }}" |
| 118 | + patch_version: "{{ item.patchversion | default(omit) }}" |
| 119 | + exclude_upi: "{{ item.excludeUPI | default(omit) }}" |
| 120 | + opatchauto: false |
| 121 | + conflict_check: true |
| 122 | + stop_processes: "{{ item.stop_processes | default(False) }}" |
| 123 | + ocm_response_file: "{{ ocm_response_file | default(omit) }}" |
| 124 | + output: verbose |
| 125 | + state: "{{ item.state }}" |
126 | 126 | with_items: |
127 | 127 | - "{{ db_homes_config[dbh.home]['opatch'] }}" |
128 | 128 | # run_once: "{{ configure_cluster }}" |
|
0 commit comments