Add local loopback as dns in resolv.conf
This commit is contained in:
parent
165a8b3a40
commit
7d25cd3098
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user