|
34 | 34 | - name: SAP SWPM Pre Install - Ensure correct permissions and ownership of all directories |
35 | 35 | ansible.builtin.file: |
36 | 36 | path: "{{ line_item }}" |
37 | | - recurse: no |
| 37 | + recurse: false |
38 | 38 | mode: "{{ sap_swpm_software_directory_mode }}" |
39 | 39 | owner: "{{ sap_swpm_software_directory_owner }}" |
40 | 40 | group: "{{ sap_swpm_software_directory_group }}" |
|
76 | 76 | - __sap_swpm_register_find_result_files_non_sapcar is defined |
77 | 77 |
|
78 | 78 |
|
79 | | -# SAPCAR Path |
80 | | - |
81 | | -- name: SAP SWPM Pre Install - Check availability of SAPCAR path - {{ sap_swpm_sapcar_path }} |
82 | | - ansible.builtin.stat: |
83 | | - path: "{{ sap_swpm_sapcar_path | d(sap_swpm_software_path) }}" |
84 | | - register: sap_swpm_sapcar_path_stat |
85 | | - failed_when: not sap_swpm_sapcar_path_stat.stat.exists |
86 | | - |
87 | | -- name: SAP SWPM Pre Install - Change ownership of SAPCAR path - {{ sap_swpm_sapcar_path }} |
88 | | - ansible.builtin.file: |
89 | | - path: "{{ sap_swpm_sapcar_path }}" |
90 | | - state: directory |
91 | | - recurse: no |
92 | | - mode: "{{ sap_swpm_software_directory_mode }}" |
93 | | - owner: "{{ sap_swpm_software_directory_owner }}" |
94 | | - group: "{{ sap_swpm_software_directory_group }}" |
95 | | - when: sap_swpm_set_file_permissions |
96 | | - |
97 | | -# SWPM Path |
98 | | - |
99 | | -- name: SAP SWPM Pre Install - Check availability of SWPM path - {{ sap_swpm_swpm_path }} |
100 | | - ansible.builtin.stat: |
101 | | - path: "{{ sap_swpm_swpm_path | d(sap_swpm_software_path) }}" |
102 | | - register: sap_swpm_swpm_path_stat |
103 | | - failed_when: not sap_swpm_swpm_path_stat.stat.exists |
104 | | - |
105 | | -- name: SAP SWPM Pre Install - Change ownership of SWPM path - {{ sap_swpm_swpm_path }} |
106 | | - ansible.builtin.file: |
107 | | - path: "{{ sap_swpm_swpm_path }}" |
108 | | - state: directory |
109 | | - recurse: no |
110 | | - mode: "{{ sap_swpm_software_directory_mode }}" |
111 | | - owner: "{{ sap_swpm_software_directory_owner }}" |
112 | | - group: "{{ sap_swpm_software_directory_group }}" |
113 | | - when: |
114 | | - - sap_swpm_swpm_path != sap_swpm_software_path |
115 | | - - sap_swpm_set_file_permissions |
116 | | - |
117 | | - |
118 | 79 | ################ |
119 | 80 | # Get software files from software paths |
120 | 81 | ################ |
121 | 82 |
|
122 | | -# 1. SAPCAR |
| 83 | +- name: SAP SWPM Pre Install - Prepare SAPCAR files |
| 84 | + ansible.builtin.include_tasks: |
| 85 | + file: software/sapcar.yml |
123 | 86 |
|
124 | | -- name: SAP SWPM Pre Install - Get SAPCAR from {{ sap_swpm_sapcar_path }} |
125 | | - ansible.builtin.shell: | |
126 | | - ls SAPCAR*.EXE |
127 | | - args: |
128 | | - chdir: "{{ sap_swpm_sapcar_path }}" |
129 | | - register: sap_swpm_sapcar_file_name_get |
130 | | - changed_when: false |
| 87 | +- name: SAP SWPM Pre Install - Prepare SWPM files |
| 88 | + ansible.builtin.include_tasks: |
| 89 | + file: software/swpm.yml |
131 | 90 |
|
132 | | -- name: SAP SWPM Pre Install - Set fact for SAPCAR |
133 | | - ansible.builtin.set_fact: |
134 | | - sap_swpm_sapcar_file_name: "{{ sap_swpm_sapcar_file_name_get.stdout }}" |
135 | | - |
136 | | -- name: SAP SWPM Pre Install - Check availability of SAPCAR - {{ sap_swpm_sapcar_path + '/' + sap_swpm_sapcar_file_name }} |
137 | | - ansible.builtin.stat: |
138 | | - path: "{{ sap_swpm_sapcar_path }}/{{ sap_swpm_sapcar_file_name }}" |
139 | | - register: sap_swpm_sapcar_file_name_stat |
140 | | - failed_when: not sap_swpm_sapcar_file_name_stat.stat.exists |
141 | | - |
142 | | -- name: SAP SWPM Pre Install - Ensure correct permissions and ownership of the SAPCAR*EXE file |
143 | | - ansible.builtin.file: |
144 | | - path: "{{ sap_swpm_sapcar_path }}/{{ sap_swpm_sapcar_file_name }}" |
145 | | - recurse: no |
146 | | - mode: "{{ sap_swpm_files_sapcar_mode }}" |
147 | | - owner: "{{ sap_swpm_files_sapcar_owner }}" |
148 | | - group: "{{ sap_swpm_files_sapcar_group }}" |
149 | | - when: sap_swpm_set_file_permissions |
150 | | - |
151 | | -# 2. SWPM |
152 | | - |
153 | | -- name: SAP SWPM Pre Install - Get SWPM from {{ sap_swpm_swpm_path }} |
154 | | - ansible.builtin.shell: | |
155 | | - ls SWPM*.SAR |
156 | | - args: |
157 | | - chdir: "{{ sap_swpm_swpm_path }}" |
158 | | - register: sap_swpm_swpm_sar_file_name_get |
159 | | - changed_when: false |
160 | | - |
161 | | -- name: SAP SWPM Pre Install - Set fact for SWPM |
162 | | - ansible.builtin.set_fact: |
163 | | - sap_swpm_swpm_sar_file_name: "{{ sap_swpm_swpm_sar_file_name_get.stdout }}" |
164 | | - |
165 | | -- name: SAP SWPM Pre Install - Check availability of SWPM - {{ sap_swpm_swpm_path + '/' + sap_swpm_swpm_sar_file_name }} |
166 | | - ansible.builtin.stat: |
167 | | - path: "{{ sap_swpm_swpm_path }}/{{ sap_swpm_swpm_sar_file_name }}" |
168 | | - register: sap_swpm_swpm_sar_file_name_stat |
169 | | - failed_when: not sap_swpm_swpm_sar_file_name_stat.stat.exists |
170 | | - |
171 | | -# Note: We use the permissions and ownership settings for non-SAPCAR*EXE files: |
172 | | -- name: SAP SWPM Pre Install - Ensure correct permissions and ownership of the SWPM*SAR file |
173 | | - ansible.builtin.file: |
174 | | - path: "{{ sap_swpm_swpm_path }}/{{ sap_swpm_swpm_sar_file_name }}" |
175 | | - recurse: no |
176 | | - mode: "{{ sap_swpm_files_non_sapcar_mode }}" |
177 | | - owner: "{{ sap_swpm_files_non_sapcar_owner }}" |
178 | | - group: "{{ sap_swpm_files_non_sapcar_group }}" |
179 | | - when: |
180 | | - - sap_swpm_swpm_path != sap_swpm_software_path |
181 | | - - sap_swpm_set_file_permissions |
182 | 91 |
|
183 | 92 | - name: SAP SWPM Pre Install - Full SAP System |
184 | 93 | when: not sap_swpm_generic |
185 | 94 | block: |
186 | 95 |
|
187 | | - # 3. IGS |
| 96 | + - name: SAP SWPM Pre Install - Check IGS files |
| 97 | + ansible.builtin.include_tasks: |
| 98 | + file: software/igsexe.yml |
188 | 99 |
|
189 | | - - name: SAP SWPM Pre Install - Get IGS from software path |
190 | | - ansible.builtin.shell: | |
191 | | - ls igsexe*.sar |
192 | | - args: |
193 | | - chdir: "{{ sap_swpm_software_path }}" |
194 | | - register: sap_swpm_igs_file_name_get |
195 | | - changed_when: false |
| 100 | + - name: SAP SWPM Pre Install - Check IGS Helper files |
| 101 | + ansible.builtin.include_tasks: |
| 102 | + file: software/igshelper.yml |
196 | 103 |
|
197 | | - - name: SAP SWPM Pre Install - Set fact for IGS |
198 | | - ansible.builtin.set_fact: |
199 | | - sap_swpm_igs_path: "{{ sap_swpm_software_path }}" |
200 | | - sap_swpm_igs_file_name: "{{ sap_swpm_igs_file_name_get.stdout }}" |
| 104 | + - name: SAP SWPM Pre Install - Check SAPEXEDB files |
| 105 | + ansible.builtin.include_tasks: |
| 106 | + file: software/sapexedb.yml |
201 | 107 |
|
202 | | - - name: SAP SWPM Pre Install - Check availability of IGS - {{ sap_swpm_igs_path + '/' + sap_swpm_igs_file_name }} |
203 | | - ansible.builtin.stat: |
204 | | - path: "{{ sap_swpm_igs_path }}/{{ sap_swpm_igs_file_name }}" |
205 | | - register: sap_swpm_igs_file_name_stat |
206 | | - failed_when: not sap_swpm_igs_file_name_stat.stat.exists |
| 108 | + - name: SAP SWPM Pre Install - Check SAPEXE files |
| 109 | + ansible.builtin.include_tasks: |
| 110 | + file: software/sapexe.yml |
207 | 111 |
|
208 | | - # 4. IGS Helper |
209 | 112 |
|
210 | | - - name: SAP SWPM Pre Install - Get IGS Helper from software path |
211 | | - ansible.builtin.shell: | |
212 | | - ls igshelper*.sar |
213 | | - args: |
214 | | - chdir: "{{ sap_swpm_software_path }}" |
215 | | - register: sap_swpm_igs_helper_file_name_get |
216 | | - changed_when: false |
217 | | - |
218 | | - - name: SAP SWPM Pre Install - Set fact for IGS |
219 | | - ansible.builtin.set_fact: |
220 | | - sap_swpm_igs_helper_path: "{{ sap_swpm_software_path }}" |
221 | | - sap_swpm_igs_helper_file_name: "{{ sap_swpm_igs_helper_file_name_get.stdout }}" |
222 | | - |
223 | | - - name: SAP SWPM Pre Install - Check availability of IGS Helper - {{ sap_swpm_igs_helper_path + '/' + sap_swpm_igs_helper_file_name }} |
224 | | - ansible.builtin.stat: |
225 | | - path: "{{ sap_swpm_igs_helper_path }}/{{ sap_swpm_igs_helper_file_name }}" |
226 | | - register: sap_swpm_igs_helper_file_name_stat |
227 | | - failed_when: not sap_swpm_igs_helper_file_name_stat.stat.exists |
228 | | - |
229 | | - # 5. SAPEXEDB |
230 | | - |
231 | | - - name: SAP SWPM Pre Install - Get SAPEXEDB from software path |
232 | | - ansible.builtin.shell: | |
233 | | - ls SAPEXEDB_*.SAR |
234 | | - args: |
235 | | - chdir: "{{ sap_swpm_software_path }}" |
236 | | - register: sap_swpm_kernel_dependent_file_name_get |
237 | | - changed_when: false |
238 | | - |
239 | | - - name: SAP SWPM Pre Install - Set fact for SAPEXEDB |
240 | | - ansible.builtin.set_fact: |
241 | | - sap_swpm_kernel_dependent_path: "{{ sap_swpm_software_path }}" |
242 | | - sap_swpm_kernel_dependent_file_name: "{{ sap_swpm_kernel_dependent_file_name_get.stdout }}" |
243 | | - |
244 | | - - name: SAP SWPM Pre Install - Check availability of SAPEXEDB - {{ sap_swpm_kernel_dependent_path + '/' + sap_swpm_kernel_dependent_file_name }} |
245 | | - ansible.builtin.stat: |
246 | | - path: "{{ sap_swpm_kernel_dependent_path }}/{{ sap_swpm_kernel_dependent_file_name }}" |
247 | | - register: sap_swpm_kernel_dependent_file_name_stat |
248 | | - failed_when: not sap_swpm_kernel_dependent_file_name_stat.stat.exists |
249 | | - |
250 | | - # 6. SAPEXE |
251 | | - |
252 | | - - name: SAP SWPM Pre Install - Get SAPEXE from software path |
253 | | - ansible.builtin.shell: | |
254 | | - ls SAPEXE_*.SAR |
255 | | - args: |
256 | | - chdir: "{{ sap_swpm_software_path }}" |
257 | | - register: sap_swpm_kernel_independent_file_name_get |
258 | | - changed_when: false |
259 | | - |
260 | | - - name: SAP SWPM Pre Install - Set fact for SAPEXE |
261 | | - ansible.builtin.set_fact: |
262 | | - sap_swpm_kernel_independent_path: "{{ sap_swpm_software_path }}" |
263 | | - sap_swpm_kernel_independent_file_name: "{{ sap_swpm_kernel_independent_file_name_get.stdout }}" |
264 | | - |
265 | | - - name: SAP SWPM Pre Install - Check availability of SAPEXE - {{ sap_swpm_kernel_independent_path + '/' + sap_swpm_kernel_independent_file_name }} |
266 | | - ansible.builtin.stat: |
267 | | - path: "{{ sap_swpm_kernel_independent_path }}/{{ sap_swpm_kernel_independent_file_name }}" |
268 | | - register: sap_swpm_kernel_independent_file_name_stat |
269 | | - failed_when: not sap_swpm_kernel_independent_file_name_stat.stat.exists |
270 | | - |
271 | | -- name: SAP SWPM Pre Install - Webdispatcher |
| 113 | +- name: SAP SWPM Pre Install - Check Webdispatcher files |
| 114 | + ansible.builtin.include_tasks: |
| 115 | + file: software/sapwebdisp.yml |
272 | 116 | when: "'Webdispatcher' in sap_swpm_product_catalog_id | string" |
273 | | - block: |
274 | | - |
275 | | - # 7. Web Dispatcher |
276 | | - |
277 | | - - name: SAP SWPM Pre Install - Get WEBDISP from software path |
278 | | - ansible.builtin.shell: | |
279 | | - ls SAPWEBDISP_*.SAR |
280 | | - args: |
281 | | - chdir: "{{ sap_swpm_software_path }}" |
282 | | - register: sap_swpm_web_dispatcher_file_name_get |
283 | | - changed_when: false |
284 | | - |
285 | | - - name: SAP SWPM Pre Install - Set fact for WEBDISP |
286 | | - ansible.builtin.set_fact: |
287 | | - sap_swpm_web_dispatcher_path: "{{ sap_swpm_software_path }}" |
288 | | - sap_swpm_web_dispatcher_file_name: "{{ sap_swpm_web_dispatcher_file_name_get.stdout }}" |
289 | | - |
290 | | - - name: SAP SWPM Pre Install - Check availability of WEBDISP - {{ sap_swpm_web_dispatcher_path + '/' + sap_swpm_web_dispatcher_file_name }} |
291 | | - ansible.builtin.stat: |
292 | | - path: "{{ sap_swpm_web_dispatcher_path }}/{{ sap_swpm_web_dispatcher_file_name }}" |
293 | | - register: sap_swpm_web_dispatcher_file_name_stat |
294 | | - failed_when: not sap_swpm_web_dispatcher_file_name_stat.stat.exists |
0 commit comments