Add local loopback as dns in resolv.conf

This commit is contained in:
IamTheFij 2022-09-26 16:52:59 -07:00
parent 66bd276626
commit 109113048f

View File

@ -60,6 +60,12 @@
# If DNS is broken after dnsmasq, then need to set /etc/resolv.conf to something # 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 # 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 - name: Setup Vault cluster
hosts: vault_instances hosts: vault_instances