sap-linuxlab / community.sap_install

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

sap_hana_install: Run the hdbuserstore command via su from superuser #847

Open berndfinger opened 2 months ago

berndfinger commented 2 months ago

When running the sap_hana_install role using a non-root user, the task Create and Store Connection Info in hdbuserstore fails with Missing sudo password if the credentials for connecting to the <sid>adm user have not been provided before, because the task is running with <sid>adm as the become_user.

This can be avoided by calling the hdbuserstore command via su from the <sid>adm user.