Add local loopback as dns in resolv.conf
This commit is contained in:
parent
66bd276626
commit
109113048f
@ -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