/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
task:
host: hostname=localhost ip=127.0.0.2 aliases=localhost.localdomain,localhost4,localhost4.localdomain4
/etc/hosts:
127.0.0.2 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
task:
host: hostname=vagrant ip=127.0.0.1 aliases=localhost.localdomain,localhost4,localhost4.localdomain4
/etc/hosts:
127.0.0.1 vagrant localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
task:
host: hostname=localhost state=absent
/etc/hosts:
# no entries enymore, removes all localhost hostnames entires
/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
task:
host: ip=::1 state=absent
/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4