Skip to content

Commit 6d596c8

Browse files
authored
Merge pull request sap-linuxlab#1172 from berndfinger/issue-1150-swpm-vars-v4
swpm: Rename all vars which contain '_swpm_swpm'
2 parents 534e045 + 4600fe3 commit 6d596c8

28 files changed

Lines changed: 321 additions & 267 deletions

roles/sap_swpm/README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Managed nodes:
2222
### Prepare SAP installation media
2323
Place a valid SAPCAR executable file in a directory specified by variable `sap_swpm_sapcar_path` (e.g. /software/sapcar). Example: `SAPCAR_1300-70007716.EXE`
2424

25-
Place a valid SWPM SAR file in a directory specified by variable `sap_swpm_swpm_path` (e.g. /software/sap_swpm). Example: `SWPM20SP18_3-80003424.SAR`
25+
Place a valid SWPM SAR file in a directory specified by variable `sap_swpm_path` (e.g. /software/sap_swpm). Example: `SWPM20SP23_0-80003424
2626

2727
Place the following files in a directory specified by variable `sap_swpm_software_path` (e.g. /software/sap_swpm_download_basket):
2828

@@ -70,7 +70,7 @@ It is recommended to execute this role together with other roles in this collect
7070

7171
- Get SAPCAR executable filename from `sap_swpm_sapcar_path`
7272

73-
- Get SWPM executable filename from `sap_swpm_swpm_path`
73+
- Get SWPM executable filename from `sap_swpm_path`
7474

7575
- Get all .SAR filenames from `sap_swpm_software_path`
7676

@@ -322,12 +322,12 @@ Define path to directory with SAPCAR file.
322322

323323
(Optional) Define name of SAPCAR file, or leave for auto-detection.
324324

325-
#### sap_swpm_swpm_path
325+
#### sap_swpm_path
326326
- _Type:_ `string`
327327

328328
Define path to directory with SWPM.
329329

330-
#### sap_swpm_swpm_sar_file_name
330+
#### sap_swpm_sar_file_name
331331
- _Type:_ `string`
332332

333333
(Optional) Define name of SWPM file, or leave for auto-detection.
@@ -350,6 +350,11 @@ Set to `true` to use SAP Media files instead of SAR files.</br>
350350

351351
Define directory where sapinst inifile will be stored.
352352

353+
#### sap_swpm_command_extra_args
354+
- _Type:_ `string`
355+
356+
(Optional) Define extra sapinst arguments to be added to the sapinst command line.
357+
353358
#### sap_swpm_install_saphostagent
354359
- _Type:_ `bool`
355360
- _Default:_ `true`
@@ -737,18 +742,12 @@ Define load type parameter `loadType`.
737742

738743
Set to `true` to execute `sap_swpm` role in generic auto-detection mode, ignoring steps for individual detection.
739744

740-
#### sap_swpm_swpm_installation_type
741-
- _Type:_ `string`
742-
743-
Define installation type method. Available types: `restore`, `ha`, `maint_plan_stack`, `ha_maint_plan_stack`.</br>
744-
Installation type is auto-detected from `sap_swpm_product_catalog_id`.
745-
746-
#### sap_swpm_swpm_command_virtual_hostname
745+
#### sap_swpm_command_virtual_hostname
747746
- _Type:_ `string`
748747

749748
Define to override default virtual hostname `sap_swpm_virtual_hostname` sapinst command used for HA installation.
750749

751-
#### sap_swpm_swpm_command_mp_stack
750+
#### sap_swpm_command_mp_stack
752751
- _Type:_ `string`
753752

754753
Define to override default sapinst command parameter for Maintenance Plan stack file.
@@ -875,17 +874,17 @@ Set group ownership for SAPCAR file in `sap_swpm_sapcar_path`.
875874
- _Type:_ `string`
876875
- _Default:_ `0644`
877876

878-
Set permissions for all non-SAPCAR files in `sap_swpm_software_path` and for SWPM*.SAR files in `sap_swpm_swpm_path`.
877+
Set permissions for all non-SAPCAR files in `sap_swpm_software_path` and for SWPM*.SAR files in `sap_swpm_path`.
879878

880879
#### sap_swpm_files_non_sapcar_owner
881880
- _Type:_ `string`
882881
- _Default:_ `root`
883882

884-
Set owner for all non-SAPCAR files in `sap_swpm_software_path` and for SWPM*.SAR files in `sap_swpm_swpm_path`.
883+
Set owner for all non-SAPCAR files in `sap_swpm_software_path` and for SWPM*.SAR files in `sap_swpm_path`.
885884

886885
#### sap_swpm_files_non_sapcar_group
887886
- _Type:_ `string`
888887
- _Default:_ `root`
889888

890-
Set group ownership for all non-SAPCAR files in `sap_swpm_software_path` and for SWPM*.SAR files in `sap_swpm_swpm_path`.
889+
Set group ownership for all non-SAPCAR files in `sap_swpm_software_path` and for SWPM*.SAR files in `sap_swpm_path`.
891890
<!-- END Role Variables -->

roles/sap_swpm/defaults/main.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sap_swpm_set_file_permissions: true
2828
# The guide mentions 755 as the minimum permission for the SPWM download directory and a umask setting of 022 for the user
2929
# which downloads the SAP software.
3030
#
31-
# Access permissions and ownership for all directories in sap_swpm_software_path, for sap_swpm_sapcar_path, and for sap_swpm_swpm_path:
31+
# Access permissions and ownership for all directories in sap_swpm_software_path, for sap_swpm_sapcar_path, and for sap_swpm_path:
3232
sap_swpm_software_directory_mode: '0755'
3333
sap_swpm_software_directory_owner: root
3434
sap_swpm_software_directory_group: root
@@ -38,7 +38,7 @@ sap_swpm_files_sapcar_mode: '0755'
3838
sap_swpm_files_sapcar_owner: root
3939
sap_swpm_files_sapcar_group: root
4040
#
41-
# Access permissions and ownership for all non-SAPCAR*EXE files in sap_swpm_software_path and for SWPM*.SAR in sap_swpm_swpm_path:
41+
# Access permissions and ownership for all non-SAPCAR*EXE files in sap_swpm_software_path and for SWPM*.SAR in sap_swpm_path:
4242
sap_swpm_files_non_sapcar_mode: '0644'
4343
sap_swpm_files_non_sapcar_owner: root
4444
sap_swpm_files_non_sapcar_group: root
@@ -149,15 +149,16 @@ sap_swpm_software_path: '/software/sapfiles'
149149
## - SAPHOSTAGENT*SAR
150150

151151
# Directory and file name of SAPCAR*EXE. Only path is mandatory. The role will automatically determine file_name
152-
sap_swpm_sapcar_path: "{{ sap_swpm_software_path }}"
152+
sap_swpm_sapcar_path: ''
153153
# sap_swpm_sapcar_file_name:
154154

155155
# Directory and file name of SWPM. Only path is mandatory. The role will automatically determine file_name
156-
sap_swpm_swpm_path: "{{ sap_swpm_software_path }}"
157-
# sap_swpm_swpm_sar_file_name:
156+
sap_swpm_path: ''
157+
sap_swpm_file_name: ''
158+
158159
#
159160
# Define your own software extraction directory. If undefined, the role will use './extracted' as a subdirectory
160-
# of sap_swpm_swpm_path.
161+
# of sap_swpm_path.
161162
# sap_swpm_software_extract_directory: # e.g. /software/sap_swpm_extracted
162163

163164
# Note:
@@ -173,6 +174,9 @@ sap_swpm_env_vars: {}
173174
# Directory in which a sapinst inifile which is to be used by the role can be stored:
174175
sap_swpm_inifile_directory: '/software/sap_swpm/inifiles'
175176

177+
# extra sapinst arguments to be added to the sapinst command line:
178+
sap_swpm_command_extra_args: ''
179+
176180
# SWPM1 - paths that this role will look for CD Media software
177181
sap_swpm_cd_export_pt1_path: ''
178182
sap_swpm_cd_export_pt2_path: ''
@@ -208,12 +212,12 @@ sap_swpm_tms_tr_files_path: ''
208212
# This allows user to watch the installation progress from a browser (on standard port 4237) and possibly interact with it
209213
# Note: Interaction can impact the automated installation and may result in the need for further manual actions
210214
# in order to complete the installation
211-
sap_swpm_swpm_observer_mode: false
215+
sap_swpm_observer_mode: false
212216
# Allows to specify a different remote access user (e.g. when root's password is unknown).
213217
# Default SWPM behaviour is to use root. This may not be desirable as the password of the root user
214218
# may not be available for security reasons. The remote access user must exist before SWPM is executed
215219
# (i.e. <sid>adm can't be used if it doesn't exist yet).
216-
sap_swpm_swpm_remote_access_user: ''
220+
sap_swpm_remote_access_user: ''
217221
# --- Experimental - SWPM Observer mode --- #
218222

219223
sap_swpm_install_saphostagent: true

roles/sap_swpm/tasks/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,25 @@
3232
tags: always
3333

3434

35-
- name: SAP SWPM - run pre_install tasks
35+
- name: SAP SWPM - Include task file to prepare variables
36+
ansible.builtin.include_tasks:
37+
file: pre_tasks/prepare_variables.yml
38+
apply:
39+
tags: always
40+
tags: always
41+
42+
- name: SAP SWPM - Run pre_install tasks
3643
ansible.builtin.import_tasks: pre_install.yml
3744
tags:
3845
- sap_swpm_pre_install
3946
- sap_swpm_install
4047

41-
- name: SAP SWPM - run swpm
48+
- name: SAP SWPM - Run swpm
4249
ansible.builtin.import_tasks: swpm.yml
4350
when: sap_swpm_run_sapinst
4451
tags:
4552
- sap_swpm_install
4653

47-
- name: SAP SWPM - run postinstall task
54+
- name: SAP SWPM - Run postinstall task
4855
ansible.builtin.import_tasks: post_install.yml
4956
when: sap_swpm_run_sapinst

roles/sap_swpm/tasks/post_install.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919

2020
- name: SAP SWPM Deployment - Finished
2121
ansible.builtin.debug:
22-
msg:
23-
- ' SAP SWPM deployment successfully completed '
24-
- ' '
25-
- ' SAP Product - {{ sap_swpm_product_catalog_id }} '
26-
- ' SID - {{ sap_swpm_sid | d("") }} '
27-
- ' Primary Instance - {{ sap_swpm_pas_instance_nr | d("") }} '
28-
- ' Host - {{ ansible_hostname }} '
29-
- ' FQDN - {{ ansible_fqdn }} '
30-
- ' IP - {{ ansible_default_ipv4.address | d(ansible_all_ipv4_addresses[0]) }} '
31-
# - ' Master Password - {{ sap_swpm_master_password }} '
32-
# - ' DDIC 000 Password - {{ sap_swpm_ddic_000_password }} '
22+
msg: |
23+
" SAP SWPM deployment successfully completed "
24+
" "
25+
" SAP Product - {{ sap_swpm_product_catalog_id }} "
26+
" SID - {{ sap_swpm_sid | d('') }} "
27+
" Primary Instance - {{ sap_swpm_pas_instance_nr | d('') }} "
28+
" Host - {{ ansible_facts['hostname'] }} "
29+
" FQDN - {{ ansible_facts['fqdn'] }} "
30+
" IP - {{ ansible_facts['default_ipv4'].address | d(ansible_facts['all_ipv4_addresses'][0]) }} "
31+
# " Master Password - {{ sap_swpm_master_password }} "
32+
# " DDIC 000 Password - {{ sap_swpm_ddic_000_password }} "
3333

3434
# SAP HANA Client will not be installed for any installation with SAP AnyDB
3535
# and will only be installed alongside SAP NWAS PAS or AAS (not NWAS ASCS)
@@ -62,6 +62,6 @@
6262
ansible.builtin.include_tasks: post_install/sum_push_to_finish.yml
6363
when:
6464
- sap_swpm_sum_start
65-
- not sap_swpm_swpm_observer_mode
65+
- not __sap_swpm_fact_observer_mode
6666
- "'NW_ABAP_CI:' in sap_swpm_product_catalog_id | string or
6767
'NW_ABAP_OneHost:' in sap_swpm_product_catalog_id | string"

roles/sap_swpm/tasks/post_install/sum_push_to_finish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
- name: Print SUM monitoring and action URLs
1818
ansible.builtin.debug:
19-
msg:
20-
- "Check the following URLs for SAP Software Update Manager (SUM) monitoring or actions:"
21-
- "Note: If these URLs don't work, check the sapinst.log file for the correct URLs."
22-
- "SUM Monitor - https://{{ ansible_fqdn }}:1129/lmsl/sumobserver/{{ sap_swpm_sid | upper }}/monitor/index.html"
23-
- "SUM Admin - https://{{ ansible_fqdn }}:1129/lmsl/sumabap/{{ sap_swpm_sid | upper }}/slui/"
24-
- "SUM Admin Utilities - https://{{ ansible_fqdn }}:1129/lmsl/sumabap/{{ sap_swpm_sid | upper }}/slui_ext/"
19+
msg: |
20+
"Check the following URLs for SAP Software Update Manager (SUM) monitoring or actions:"
21+
"Note: If these URLs don't work, check the sapinst.log file for the correct URLs."
22+
"SUM Monitor - https://{{ ansible_facts['fqdn'] }}:1129/lmsl/sumobserver/{{ sap_swpm_sid | upper }}/monitor/index.html"
23+
"SUM Admin - https://{{ ansible_facts['fqdn'] }}:1129/lmsl/sumabap/{{ sap_swpm_sid | upper }}/slui/"
24+
"SUM Admin Utilities - https://{{ ansible_facts['fqdn'] }}:1129/lmsl/sumabap/{{ sap_swpm_sid | upper }}/slui_ext/"
2525
2626
# Check the SUM status via SUMOBSEVER.XML, wait for 60 minutes until we are in BIND_PATCH phase
2727
- name: Checking the status of SUM (BIND_PATCH)

roles/sap_swpm/tasks/pre_install.yml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
- name: SAP SWPM Pre Install - Define the temporary directory for SWPM
3333
ansible.builtin.set_fact:
34-
__sap_swpm_fact_tempdir_from_env: "{{ ansible_env.TEMP | d('/tmp') }}"
34+
__sap_swpm_fact_tempdir_from_env: "{{ ansible_facts['env'].TEMP | d('/tmp') }}"
3535
tags:
3636
- sap_swpm_generate_inifile
3737
- sap_swpm_sapinst_commandline
@@ -171,7 +171,6 @@
171171
FAIL: The variable '{{ __sap_swpm_var_name }}' is empty.
172172
{% endif %}
173173
loop:
174-
- sap_swpm_software_path
175174
- sap_swpm_product_catalog_id
176175
- sap_swpm_sid
177176
- sap_swpm_fqdn
@@ -332,18 +331,18 @@
332331
- name: SAP SWPM - Display Software
333332
ansible.builtin.debug:
334333
msg: |
335-
SAPCAR: {{ sap_swpm_sapcar_path }}: {{ __sap_swpm_fact_sapcar_file_name }}
336-
SWPM: {{ sap_swpm_swpm_path }}: {{ __sap_swpm_fact_swpm_sar_file_name }}
334+
SAPCAR: {{ __sap_swpm_fact_sapcar_path }}: {{ __sap_swpm_fact_sapcar_file_name }}
335+
SWPM: {{ __sap_swpm_fact_swpm_path }}: {{ __sap_swpm_fact_swpm_file_name }}
337336
{% if not sap_swpm_generic %}
338-
SAPEXEDB: {{ sap_swpm_software_path }}: {{ __sap_swpm_register_sapexedb_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
339-
SAPEXE: {{ sap_swpm_software_path }}: {{ __sap_swpm_register_sapexe_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
340-
IGS: {{ sap_swpm_software_path }}: {{ __sap_swpm_register_igs_exe_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
341-
IGS Helper: {{ sap_swpm_software_path }}: {{ __sap_swpm_register_igs_helper_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
337+
SAPEXEDB: {{ __sap_swpm_fact_software_path }}: {{ __sap_swpm_register_sapexedb_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
338+
SAPEXE: {{ __sap_swpm_fact_software_path }}: {{ __sap_swpm_register_sapexe_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
339+
IGS: {{ __sap_swpm_fact_software_path }}: {{ __sap_swpm_register_igs_exe_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
340+
IGS Helper: {{ __sap_swpm_fact_software_path }}: {{ __sap_swpm_register_igs_helper_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
342341
{% if 'Webdispatcher' in sap_swpm_product_catalog_id | string %}
343-
WEBDISP: {{ sap_swpm_software_path }}: {{ __sap_swpm_register_sapwebdisp_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
342+
WEBDISP: {{ __sap_swpm_fact_software_path }}: {{ __sap_swpm_register_sapwebdisp_files.files | map(attribute='path') | map('basename') | join(', ') | d('') }}
344343
{% endif %}
345344
{% endif %}
346-
{% if sap_swpm_swpm_installation_type in ['maint_plan_stack', 'ha_maint_plan_stack'] %}
345+
{% if __sap_swpm_fact_installation_type in ['maint_plan_stack', 'ha_maint_plan_stack'] %}
347346
MP Stack: {{ (sap_swpm_mp_stack_path | d('', true) + '/' + sap_swpm_mp_stack_file_name | d('', true)) | regex_replace('//*', '/') }}"
348347
{% endif %}
349348
{% if sap_swpm_backup_location is defined and sap_swpm_backup_location | string | trim | length > 0 %}
@@ -354,39 +353,39 @@
354353
- name: SAP SWPM - Installation Process
355354
ansible.builtin.debug:
356355
msg:
357-
- ' Ready to run SWPM for SAP Software Installation '
358-
- ' '
359-
- ' SAP Product - {{ sap_swpm_product_catalog_id }} '
360-
- ' SID - {{ sap_swpm_sid }} '
361-
- ' Host - {{ ansible_hostname }} '
362-
- ' '
363-
- ' The installation can take up to 3 hours. Run the following command as root'
364-
- ' on {{ ansible_hostname }} to display the installation logs:'
365-
- ' # tail -f $(cat {{ __sap_swpm_fact_tempdir_from_env }}/sapinst_instdir/.lastInstallationLocation)/sapinst.log'
356+
- " Ready to run SWPM for SAP Software Installation "
357+
- " "
358+
- " SAP Product - {{ sap_swpm_product_catalog_id }} "
359+
- " SID - {{ sap_swpm_sid }} "
360+
- " Host - {{ ansible_facts['hostname'] }} "
361+
- " "
362+
- " The installation can take up to 3 hours. Run the following command as root"
363+
- " on {{ ansible_facts['hostname'] }} to display the installation logs:"
364+
- " # tail -f $(cat {{ __sap_swpm_fact_tempdir_from_env }}/sapinst_instdir/.lastInstallationLocation)/sapinst.log"
366365

367366
################
368367
# Set sapinst command
369368
################
370369

371370
- name: SAP SWPM Pre Install - Set the sapinst command parameters
372371
vars:
373-
sap_swpm_swpm_command_guiserver: "{{ 'SAPINST_START_GUISERVER=false' if not sap_swpm_swpm_observer_mode else '' }}"
374-
sap_swpm_swpm_command_observer: "{{ 'SAPINST_REMOTE_ACCESS_USER=' + sap_swpm_swpm_remote_access_user + ' SAPINST_REMOTE_ACCESS_USER_IS_TRUSTED=true' if sap_swpm_swpm_observer_mode and sap_swpm_swpm_remote_access_user | d('', true) | length > 0 else '' }}"
372+
sap_swpm_command_guiserver: "{{ 'SAPINST_START_GUISERVER=false' if not __sap_swpm_fact_observer_mode else '' }}"
373+
sap_swpm_command_observer: "{{ 'SAPINST_REMOTE_ACCESS_USER=' + __sap_swpm_fact_remote_access_user + ' SAPINST_REMOTE_ACCESS_USER_IS_TRUSTED=true' if __sap_swpm_fact_observer_mode and __sap_swpm_fact_remote_access_user | d('', true) | length > 0 else '' }}"
375374
ansible.builtin.set_fact:
376-
sap_swpm_swpm_command_inifile: "SAPINST_INPUT_PARAMETERS_URL={{ __sap_swpm_register_tmpdir.path }}/inifile.params"
377-
sap_swpm_swpm_command_product_id: "SAPINST_EXECUTE_PRODUCT_ID={{ sap_swpm_product_catalog_id }}"
378-
# If SWPM is running a normal install Ansible Variable sap_swpm_swpm_command_virtual_hostname is blank
379-
# IF SWPM is running a HA installation, Ansible Variable sap_swpm_swpm_command_virtual_hostname is set and contains "SAPINST_USE_HOSTNAME={{ sap_swpm_virtual_hostname }} IS_HOST_LOCAL_USING_STRING_COMPARE=true"
380-
# If SWPM is running a MP Stack XML installation, Ansible Variable sap_swpm_swpm_command_mp_stack is set and contains "SAPINST_STACK_XML={{ sap_swpm_mp_stack_path }} + '/' (if needed) + {{ sap_swpm_mp_stack_file_name }}"
381-
sap_swpm_swpm_command_extra_args: "SAPINST_SKIP_DIALOGS=true {{ sap_swpm_swpm_command_guiserver }} {{ sap_swpm_swpm_command_observer }} {{ sap_swpm_swpm_command_virtual_hostname | d('') }} {{ sap_swpm_swpm_command_mp_stack | d('') }}"
375+
__sap_swpm_fact_command_inifile: "SAPINST_INPUT_PARAMETERS_URL={{ __sap_swpm_register_tmpdir.path }}/inifile.params"
376+
__sap_swpm_fact_command_product_id: "SAPINST_EXECUTE_PRODUCT_ID={{ sap_swpm_product_catalog_id }}"
377+
# If SWPM is running a normal install Ansible Variable __sap_swpm_fact_command_virtual_hostname is blank
378+
# IF SWPM is running a HA installation, Ansible Variable __sap_swpm_fact_command_virtual_hostname is set and contains "SAPINST_USE_HOSTNAME={{ sap_swpm_virtual_hostname }} IS_HOST_LOCAL_USING_STRING_COMPARE=true"
379+
# If SWPM is running a MP Stack XML installation, Ansible Variable __sap_swpm_fact_command_mp_stack is set and contains "SAPINST_STACK_XML={{ sap_swpm_mp_stack_path }} + '/' (if needed) + {{ sap_swpm_mp_stack_file_name }}"
380+
__sap_swpm_fact_command_extra_args: "SAPINST_SKIP_DIALOGS=true {{ sap_swpm_command_guiserver }} {{ sap_swpm_command_observer }} {{ __sap_swpm_fact_command_virtual_hostname | d('') }} {{ __sap_swpm_fact_command_mp_stack | d('') }} {{ sap_swpm_command_extra_args | d('') }}"
382381
tags: sap_swpm_sapinst_commandline
383382

384383
- name: Set fact for the sapinst command line
385384
ansible.builtin.set_fact:
386385
__sap_swpm_sapinst_command: >-
387-
umask {{ sap_swpm_umask | d('022') }} ; ./sapinst {{ sap_swpm_swpm_command_inifile }}
388-
{{ sap_swpm_swpm_command_product_id }}
389-
{{ sap_swpm_swpm_command_extra_args }}
386+
umask {{ sap_swpm_umask | d('022') }} ; ./sapinst {{ __sap_swpm_fact_command_inifile }}
387+
{{ __sap_swpm_fact_command_product_id }}
388+
{{ __sap_swpm_fact_command_extra_args }}
390389
tags: sap_swpm_sapinst_commandline
391390

392391
- name: Display the sapinst command line

roles/sap_swpm/tasks/pre_install/assert_hostname_resolution_for_ha.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
fail_msg: "FAIL: 'sap_swpm_virtual_hostname' is not defined, cannot be resolved, or has multiple entries in /etc/hosts!"
4343
success_msg: "PASS: {{ sap_swpm_virtual_hostname }} can be resolved."
4444

45-
- name: SAP SWPM Pre Install - HA settings - Assert that sap_swpm_fact_virtual_ip is part of ansible_all_ipv4_addresses
45+
- name: SAP SWPM Pre Install - HA settings - Assert that sap_swpm_fact_virtual_ip is part of ansible_facts['all_ipv4_addresses']
4646
ansible.builtin.assert:
47-
that: __sap_swpm_fact_virtual_ip in ansible_all_ipv4_addresses
48-
fail_msg: "FAIL: {{ __sap_swpm_fact_virtual_ip }} is not part of ansible_all_ipv4_addresses!"
49-
success_msg: "PASS: {{ __sap_swpm_fact_virtual_ip }} is part of ansible_all_ipv4_addresses."
47+
that: __sap_swpm_fact_virtual_ip in ansible_facts['all_ipv4_addresses']
48+
fail_msg: "FAIL: {{ __sap_swpm_fact_virtual_ip }} is not part of ansible_facts['all_ipv4_addresses']!"
49+
success_msg: "PASS: {{ __sap_swpm_fact_virtual_ip }} is part of ansible_facts['all_ipv4_addresses']."

0 commit comments

Comments
 (0)