Add local loopback as dns in resolv.conf

This commit is contained in:
IamTheFij 2022-09-26 16:52:59 -07:00
parent 165a8b3a40
commit 7d25cd3098
1 changed files with 6 additions and 0 deletions

View File

@ -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