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:
IamTheFij 2022-11-27 22:46:25 -08:00
parent 7bed73b9a7
commit fd731971d3
2 changed files with 7 additions and 1 deletions

View File

@ -63,7 +63,8 @@
lineinfile: lineinfile:
dest: /etc/resolv.conf dest: /etc/resolv.conf
create: true 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 become: true
- name: Setup Vault cluster - name: Setup Vault cluster

View File

@ -129,6 +129,11 @@ job "blocky" {
data = var.config_data data = var.config_data
destination = "app/config.yml" destination = "app/config.yml"
splay = "1m" splay = "1m"
wait {
min = "10s"
max = "20s"
}
} }
} }