File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
sap_general_preconfigure/tasks/RedHat
sap_hana_preconfigure/tasks/RedHat Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 89
89
# ## # /opt/ibm/lop/configure
90
90
# ## # yum -y install ibm-power-managed-rhel7
91
91
# ##
92
- # Reasons for noqa:
93
- # command-instead-of-module: I need to examine the output of the yum info command.
94
- # risky-shell-pipe: If a package is not installed, the shell command will fail. But I want the command to
95
- # succeed so that the awk command can examine the result.
96
- - name : Get install status of required IBM packages # noqa command-instead-of-module risky-shell-pipe
92
+ - name : Get install status of required IBM packages
97
93
ansible.builtin.shell : |
98
- yum info installed {{ __sap_hana_preconfigure_required_ppc64le | map('quote') | join(' ') }} |
94
+ set -o pipefail && yum info installed {{ __sap_hana_preconfigure_required_ppc64le | map('quote') | join(' ') }} |
99
95
awk '/Name/{n=$NF}/Version/{v=$NF}/Release/{r=$NF}/Description/{printf ("%s\n", n)}'
100
96
register : __sap_hana_preconfigure_register_required_ppc64le_packages_assert
101
- changed_when : no
102
- when : ansible_architecture == "ppc64le"
97
+ changed_when : false
98
+ when :
99
+ - ansible_architecture == "ppc64le"
100
+ - sap_general_preconfigure_install_ibm_power_tools
101
+ ignore_errors : " {{ sap_hana_preconfigure_assert_ignore_errors | d(false) }}"
103
102
104
103
- name : Assert that all required IBM packages are installed
105
104
ansible.builtin.assert :
110
109
- " {{ __sap_hana_preconfigure_required_ppc64le }}"
111
110
loop_control :
112
111
loop_var : line_item
113
- when : ansible_architecture == "ppc64le"
112
+ when :
113
+ - ansible_architecture == "ppc64le"
114
+ - sap_general_preconfigure_install_ibm_power_tools
114
115
ignore_errors : " {{ sap_hana_preconfigure_assert_ignore_errors | d(false) }}"
115
116
116
117
- name : Minimum required package version check
You can’t perform that action at this time.
0 commit comments