File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484 ansible.builtin.include_tasks : ./tasks/saptune.yaml
8585 when : not use_sapconf | bool
8686
87- # SAPHanaSR-angi -BEGIN-
87+ - name : SAPHanaSR package pattern
88+ ansible.builtin.set_fact :
89+ saphanasr_patterns : >-
90+ {{ ['absent', 'present' ]
91+ if ( use_hana_sr_angi | bool )
92+ else ['present', 'absent']
93+ }}
94+
8895 - name : Ensure SAPHanaSR-doc and SAPHanaSR is NOT installed when angi is used
8996 community.general.zypper :
9097 name : " {{ item }}"
91- state : absent
98+ state : " {{ saphanasr_patterns[0] }} "
9299 loop :
93100 - ' SAPHanaSR-doc'
94101 - ' SAPHanaSR'
95- when : use_hana_sr_angi | bool
102+ when : cluster_node
96103
97104 - name : Ensure SAPHanaSR-angi and supportutils plugin is installed when angi is used
98105 community.general.zypper :
99106 name : " {{ item }}"
100- state : present
107+ state : " {{ saphanasr_patterns[1] }} "
101108 loop :
102109 - ' SAPHanaSR-angi'
103110 - ' supportutils-plugin-ha-sap'
104- when : cluster_node and use_hana_sr_angi | bool
111+ when : cluster_node
105112
106113 # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/reboot_module.html#parameters
107114 # reboot_timeout Maximum seconds to wait for machine to reboot and respond to a test command. Default: 600
You can’t perform that action at this time.
0 commit comments