Try to stabilize DNS
Add all cluster nodes to each nodes resolv.conf and update blocky config template to delay render on update to avoid unnecessary restarts
This commit is contained in:
parent
7bed73b9a7
commit
fd731971d3
@ -63,7 +63,8 @@
|
||||
lineinfile:
|
||||
dest: /etc/resolv.conf
|
||||
create: true
|
||||
line: "nameserver {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
|
||||
line: "nameserver {{ hostvars[item].ansible_default_ipv4.address }}"
|
||||
loop: "{{ ansible_play_hosts }}"
|
||||
become: true
|
||||
|
||||
- name: Setup Vault cluster
|
||||
|
@ -129,6 +129,11 @@ job "blocky" {
|
||||
data = var.config_data
|
||||
destination = "app/config.yml"
|
||||
splay = "1m"
|
||||
|
||||
wait {
|
||||
min = "10s"
|
||||
max = "20s"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user