sap-linuxlab / community.sap_install

Automation for SAP - Collection of Ansible Roles for various SAP software installation
Apache License 2.0
53 stars 57 forks source link

sap_hana_preconfigure/SLES: Zypper lock handler for #791 #796

Closed marcelmamula closed 4 months ago

marcelmamula commented 4 months ago

This PR adds Suse specific check for zypper to ensure that it is not locked by time both roles are finished.

Applies to:

sap_general_preconfigure
sap_hana_preconfigure

Execution example:

RUNNING HANDLER [/mnt/c/scripts/community.sap_install/roles/sap_hana_preconfigure : Reboot the managed node] ************************************************
changed: [s01s4hana]

RUNNING HANDLER [/mnt/c/scripts/community.sap_install/roles/sap_hana_preconfigure : Wait for Zypper lock to be released] ************************************
FAILED - RETRYING: [s01s4hana]: Wait for Zypper lock to be released (60 retries left).
ok: [s01s4hana]

Solves: https://github.com/sap-linuxlab/community.sap_install/issues/791