File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
sap_general_preconfigure/tasks/RedHat
sap_hana_preconfigure/tasks/RedHat Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 278
278
__sap_general_preconfigure_fact_needs_restarting_command_assert : " needs-restarting -r"
279
279
when : ansible_distribution_major_version == '7'
280
280
281
- - name : " Assert - Set needs-restarting command in case of RHEL 8 or RHEL 9 , except RHEL 8.0"
281
+ - name : " Assert - Set needs-restarting command in case of RHEL 8 or greater , except RHEL 8.0"
282
282
ansible.builtin.set_fact :
283
283
__sap_general_preconfigure_fact_needs_restarting_command_assert : " yum needs-restarting -r"
284
284
when :
285
- - (ansible_distribution_major_version == '8' or
286
- ansible_distribution_major_version == '9'
287
- )
285
+ - ansible_distribution_major_version | int >= 8
288
286
- ansible_distribution_version != '8.0'
289
287
290
288
- name : " Assert - Set customized needs-restarting command in case of RHEL 8.0"
Original file line number Diff line number Diff line change 207
207
ansible.builtin.set_fact :
208
208
__sap_hana_preconfigure_fact_needs_restarting_command_assert : " needs-restarting -r"
209
209
when :
210
- - ansible_os_family == 'RedHat'
211
210
- ansible_distribution_major_version == '7'
212
211
213
- - name : " Assert - Set needs-restarting command in case of RHEL 8 or RHEL 9 , except RHEL 8.0"
212
+ - name : " Assert - Set needs-restarting command in case of RHEL 8 or greater , except RHEL 8.0"
214
213
ansible.builtin.set_fact :
215
214
__sap_hana_preconfigure_fact_needs_restarting_command_assert : " yum needs-restarting -r"
216
215
when :
217
- - ansible_os_family == 'RedHat'
218
- - (ansible_distribution_major_version == '8' or
219
- ansible_distribution_major_version == '9'
220
- )
216
+ - ansible_distribution_major_version | int >= 8
221
217
- ansible_distribution_version != '8.0'
222
218
223
219
- name : " Assert - Set customized needs-restarting command in case of RHEL 8.0"
233
229
var : __sap_hana_preconfigure_fact_needs_restarting_command_assert
234
230
235
231
# Reason for noqa: The command to be executed might contain pipes
236
- - name : Assert - Determine if system needs to be restarted # noqa command-instead-of-shell
232
+ - name : Assert - Determine if the system needs to be restarted # noqa command-instead-of-shell
237
233
ansible.builtin.shell : " {{ __sap_hana_preconfigure_fact_needs_restarting_command_assert }}"
238
234
register : __sap_hana_preconfigure_register_needs_restarting_assert
239
235
changed_when : false
You can’t perform that action at this time.
0 commit comments