From 109113048f9e34a740028c976c35ad89573d3453 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 26 Sep 2022 16:52:59 -0700 Subject: [PATCH] Add local loopback as dns in resolv.conf --- setup-cluster.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup-cluster.yml b/setup-cluster.yml index 309f159..7d43bf1 100644 --- a/setup-cluster.yml +++ b/setup-cluster.yml @@ -60,6 +60,12 @@ # If DNS is broken after dnsmasq, then need to set /etc/resolv.conf to something # pointing to 127.0.0.1 and possibly restart Docker and Nomad + - name: Update resolv.conf + lineinfile: + dest: /etc/resolv.conf + create: true + line: "nameserver 127.0.0.1" + become: true - name: Setup Vault cluster hosts: vault_instances