diff --git a/roles/dnsmasq/tasks/main.yml b/roles/dnsmasq/tasks/main.yml index 17b61ee1c..2c10b6c4b 100644 --- a/roles/dnsmasq/tasks/main.yml +++ b/roles/dnsmasq/tasks/main.yml @@ -27,8 +27,7 @@ with_items: - '^127\.0\.0\.1(\s+){{ inventory_hostname }}.*' - '^::1(\s+){{ inventory_hostname }}.*' - - '^::1(\s+)localhost.*' - - '^127.0.0.1(\s+)localhost.*' + - '^::1(\s+)localhost(\s+).*' - name: localhost in hosts file lineinfile: