Skip to content

Commit

Permalink
sap_swpm: Skip comments in /etc/hosts check
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Nov 6, 2024
1 parent 262ca2e commit 37fff99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- name: SAP SWPM Pre Install - HA settings - Try to resolve sap_swpm_virtual_hostname from /etc/hosts
ansible.builtin.shell: |
awk '/\s{{ sap_swpm_virtual_hostname }}\./||/\s{{ sap_swpm_virtual_hostname }}/{print $1}' /etc/hosts
awk '/^[^#]/&&(/\s{{ sap_swpm_virtual_hostname }}\./||/\s{{ sap_swpm_virtual_hostname }}/){print $1}' /etc/hosts
register: __sap_swpm_register_virtual_ip_etc_hosts
changed_when: false
failed_when: false
Expand Down

0 comments on commit 37fff99

Please sign in to comment.