Skip to content

Commit

Permalink
sap_hana_install: Avoid "Missing sudo password"
Browse files Browse the repository at this point in the history
... when running the hdbuserstore command.

Fixes #847.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Aug 30, 2024
1 parent ca4ea52 commit 301163a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions roles/sap_hana_install/tasks/post_install/hdbuserstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@

- name: SAP HANA Post Install - Create and Store Connection Info in hdbuserstore
ansible.builtin.shell: |
/usr/sap/{{ sap_hana_install_sid }}/SYS/exe/hdb/hdbuserstore \
su - {{ sap_hana_install_sid | lower }}adm -c "/usr/sap/{{ sap_hana_install_sid }}/SYS/exe/hdb/hdbuserstore \
SET {{ sap_hana_install_hdbuserstore_key }} \
{{ ansible_hostname }}:3{{ sap_hana_install_number }}13 \
SYSTEM '{{ sap_hana_install_db_system_password | d(sap_hana_install_master_password) }}'
SYSTEM '{{ sap_hana_install_db_system_password | d(sap_hana_install_master_password) }}'"
args:
executable: /bin/bash
become: true
become_user: "{{ sap_hana_install_sid | lower }}adm"
when: not ansible_check_mode
changed_when: no
register: __sap_hana_install_store_connection_information
Expand Down

0 comments on commit 301163a

Please sign in to comment.