|
168 | 168 | awk '/Name/{n=$NF}/Version/{v=$NF}/Release/{r=$NF}/Description/{printf ("%s\n", n)}' |
169 | 169 | register: __sap_general_preconfigure_register_required_ppc64le_packages_assert |
170 | 170 | changed_when: false |
171 | | - when: ansible_architecture == "ppc64le" |
| 171 | + when: |
| 172 | + - ansible_architecture == "ppc64le" |
| 173 | + - sap_general_preconfigure_install_ibm_power_tools |
172 | 174 | ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}" |
173 | 175 |
|
174 | 176 | - name: Assert that all required IBM packages are installed |
|
180 | 182 | - "{{ __sap_general_preconfigure_required_ppc64le }}" |
181 | 183 | loop_control: |
182 | 184 | loop_var: line_item |
183 | | - when: ansible_architecture == "ppc64le" |
| 185 | + when: |
| 186 | + - ansible_architecture == "ppc64le" |
| 187 | + - sap_general_preconfigure_install_ibm_power_tools |
184 | 188 | ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}" |
185 | 189 |
|
186 | 190 | - name: Minimum required package version check |
|
278 | 282 | __sap_general_preconfigure_fact_needs_restarting_command_assert: "needs-restarting -r" |
279 | 283 | when: ansible_distribution_major_version == '7' |
280 | 284 |
|
281 | | -- name: "Assert - Set needs-restarting command in case of RHEL 8 or RHEL 9, except RHEL 8.0" |
| 285 | +- name: "Assert - Set needs-restarting command in case of RHEL 8 or greater, except RHEL 8.0" |
282 | 286 | ansible.builtin.set_fact: |
283 | 287 | __sap_general_preconfigure_fact_needs_restarting_command_assert: "yum needs-restarting -r" |
284 | 288 | when: |
285 | | - - (ansible_distribution_major_version == '8' or |
286 | | - ansible_distribution_major_version == '9' |
287 | | - ) |
| 289 | + - ansible_distribution_major_version | int >= 8 |
288 | 290 | - ansible_distribution_version != '8.0' |
289 | 291 |
|
290 | 292 | - name: "Assert - Set customized needs-restarting command in case of RHEL 8.0" |
|
0 commit comments