community.sap_install
community.sap_install copied to clipboard
sap_swpm: The task `SAP SWPM Pre Install - Check availability of SWPM` can fail
Ansible Role
sap_swpm
OS Family
N/A
Ansible Controller - Python version
Python 3.13.2
Ansible-core version
ansible [core 2.16.14]
Bug Description
When running the role sap_swpm while there is more than one file SWPM*SAR in the directory specified by sap_swpm_swpm_path, the role fails in task SAP SWPM Pre Install - Check availability of SWPM.
After ensuring that in this directory there is only one file with the pattern SWPM*SAR, the role proceeds as expected.
Bug reproduction
- Download and place two different files with the pattern
SWPM*SARin the directory specified bysap_swpm_swpm_path, for example:SWPM20SP20_1-70003174.SARandSWPM20SP20_1-80003424.SAR. - Run the playbook which calls the role
sap_swpm. - Wait until the playbook exits at the failing task.
Community participation
Happy to implement this bug fix
If this is being updated, as a further precaution it should also check the SWPM file is the correct ELF compile as the target host - i.e. x86_64, ppc64le, s390x. Given above is 2 different SWPM compressed archives for different CPU Arch