Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_hana_install: Run hdbuserstore via su #848

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading