kolla-ansible/releasenotes/notes/bug-1862739-05246e7599375800.yaml
Radosław Piliszek adbe115e39 Use more permissive regex to remove the offending 127.0.1.1
line from /etc/hosts

Ubuntu always uses 127.0.1.1 for that with some tricky sauce
around `hostname` depending on whether it contains '.' or not.
And when I mean `hostname` it's the one returned by `hostname`
command with no arguments.

ansible_hostname is always a single word so we can match on that.

I did not want to remove just any 127.0.1.1 in case someone
is using it for other purposes. :-)

Change-Id: I8bd3d42a5e3bd0f63336ed60a0af90d52b1650d6
Closes-bug: #1862739
2020-02-12 12:16:26 +01:00

8 lines
186 B
YAML

---
fixes:
- |
Use more permissive regex to remove the offending 127.0.1.1 line
from /etc/hosts.
`LP#1862739
<https://bugs.launchpad.net/kolla-ansible/+bug/1862739>`__