Skip to content
Merged
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
14 changes: 14 additions & 0 deletions roles/sap_swpm/tasks/post_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@
- ' IP - {{ ansible_default_ipv4.address | d(ansible_all_ipv4_addresses[0]) }} '
# - ' Master Password - {{ sap_swpm_master_password }} '
# - ' DDIC 000 Password - {{ sap_swpm_ddic_000_password }} '

- name: SAP SWPM Post Install - Enforce Connection Info in hdbuserstore
ansible.builtin.shell: |
/usr/sap/{{ sap_swpm_sid }}/hdbclient/hdbuserstore \
SET DEFAULT \
{{ sap_swpm_db_host }}:3{{ sap_swpm_db_instance_nr }}13@{{ sap_swpm_db_sid }} \
{{ sap_swpm_db_schema_abap }} '{{ sap_swpm_db_system_password }}'
args:
executable: /bin/bash
become: true
become_user: "{{ sap_swpm_sid | lower }}adm"
when: sap_swpm_install_saphostagent is defined and sap_swpm_install_saphostagent
register: __sap_swpm_post_install_register_hdbuserstore_connection
changed_when: __sap_swpm_post_install_register_hdbuserstore_connection is succeeded