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