From 7dec75454379ea2d4ec5578a14f8be8c70151bba Mon Sep 17 00:00:00 2001 From: Greg Althaus Date: Wed, 20 Jan 2016 10:32:57 -0600 Subject: [PATCH] Try to make the etc hosts part idempotent --- roles/dnsmasq/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: