sap-linuxlab / community.sap_install

Automation for SAP - Collection of Ansible Roles for various SAP software installation
Apache License 2.0
54 stars 57 forks source link

sap_maintain_etc_hosts: Change space to tab delimiter #881

Open marcelmamula opened 4 weeks ago

marcelmamula commented 4 weeks ago

Problem

sap_install_media_detect currently updates /etc/hosts file with spaces, creating usable but unsightly output. Example of first line overwritten by role, while second line is kept unchanged.

10.10.10.170 je1scs.aws.com je1scs
10.10.10.138    je1ers.aws.com      je1ers

Solution

Change from space to Tab \t as already done in https://github.com/sap-linuxlab/community.sap_infrastructure/blob/0e67afc14738c8731192ef9f5040496c4a96e9b1/roles/sap_vm_provision/tasks/common/set_etc_hosts.yml#L24

@berndfinger @rhmk