32e44dc7bc
A hosts line may contain tabs instead of spaces and the '\ .*' regexp doesn't match on that case. As such, we can improve the regexp to simply look for any character after matching the address word. This fixes the following problem when an entry with a tab exists in the file ~$ cat -Et /etc/hosts|head -n1 127.0.0.1^Ilocalhost$ The entry is not updated by the script leading to the following problem fatal: [localhost]: FAILED! => { "assertion": "'127.0.1.1 localhost.openstack.local localhost' in hosts_content", "changed": false, "evaluated_to": false } Change-Id: I23d22cbf4317a3c9228bcdb6b3e9e6c2238fcfb7 |
||
---|---|---|
.. | ||
environment.j2 | ||
modprobe.conf.j2 | ||
openstack-host-hostfile-setup.sh.j2 | ||
openstack-release.j2 | ||
sudoers.j2 | ||
sysstat.cron.debian.j2 | ||
sysstat.cron.redhat.j2 | ||
sysstat.cron.suse.j2 | ||
sysstat.default.j2 |