Skip to content

Commit f396f00

Browse files
authored
Merge pull request #459 from a-kpappas/TEAM-10054-hdmlcm-template
Upload configfile and template generated by the sap install role
2 parents aff9eb2 + bb65abe commit f396f00

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

ansible/playbooks/roles/sap_hana_install/tasks/pre_install/hdblcm_configfile.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@
3535
register: __sap_hana_install_register_hdblcm_output
3636
changed_when: no
3737

38+
- name: SAP HANA Pre Install - Copy the hdbclm configfile for later extraction
39+
ansible.builtin.copy:
40+
src: "{{ sap_hana_install_configfile_directory }}/{{ sap_hana_install_configfile_template_prefix }}.cfg"
41+
dest: "/tmp/hdblcm_before_jinja.cfg"
42+
remote_src: true
43+
mode: preserve
44+
3845
- name: SAP HANA Pre Install - Display the output of the hdblcm command
3946
ansible.builtin.debug:
4047
msg: "Output of hdblcm command: {{ __sap_hana_install_register_hdblcm_output.stdout_lines }}"
@@ -58,6 +65,13 @@
5865
dest: "{{ sap_hana_install_local_configfile_directory }}"
5966
register: __sap_hana_install_register_fetch_hdblcm_configfile_jinja2_template
6067

68+
- name: SAP HANA Pre Install - Copy the Jinja2 template for later extraction
69+
ansible.builtin.copy:
70+
src: "{{ sap_hana_install_configfile_directory }}/{{ sap_hana_install_configfile_template_prefix }}.j2"
71+
dest: "/tmp/hdblcm_template.j2"
72+
remote_src: true
73+
mode: preserve
74+
6175
- name: SAP HANA Pre Install - Display the location of the local Jinja2 template
6276
ansible.builtin.debug:
6377
msg: "The Jinja2 template has been downloaded to '{{ __sap_hana_install_register_fetch_hdblcm_configfile_jinja2_template.dest }}'."
@@ -71,6 +85,14 @@
7185
register: __sap_hana_install_register_cftemplate
7286
when: not ansible_check_mode
7387

88+
- name: SAP HANA Pre Install - Process the Jinja2 template to create the hdblcm configfile
89+
ansible.builtin.copy:
90+
src: "{{ __sap_hana_install_register_tmpdir.path }}/configfile.cfg"
91+
dest: "/tmp/hdblcm_processed_configfile.cfg"
92+
remote_src: true
93+
mode: preserve
94+
when: not ansible_check_mode
95+
7496
when: not __sap_hana_install_register_stat_hdblcm_configfile.stat.exists
7597

7698
- name: SAP HANA Pre Install - Display the path name of the hdblcm configfile

0 commit comments

Comments
 (0)