kolla-ansible/ansible/roles/baremetal
Radosław Piliszek 87a5063bd2 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
(cherry picked from commit adbe115e39)
2020-02-26 19:55:03 +00:00
..
defaults CentOS 8: Deploy CentOS 8 containers 2020-02-24 13:49:50 +00:00
tasks Use more permissive regex to remove the offending 127.0.1.1 2020-02-26 19:55:03 +00:00
templates Modernize the way of configuring Docker daemon 2019-09-05 08:19:26 +00:00
vars Modernize the way of configuring Docker daemon 2019-09-05 08:19:26 +00:00