diff --git a/ansible_playbooks/setup-cluster.yml b/ansible_playbooks/setup-cluster.yml index d9322b7..1943d8d 100644 --- a/ansible_playbooks/setup-cluster.yml +++ b/ansible_playbooks/setup-cluster.yml @@ -1,4 +1,18 @@ --- +- name: Update DNS for bootstrapping with non-Nomad host + hosts: consul_instances + become: true + gather_facts: false + vars: + non_nomad_dns: 192.168.2.170 + + tasks: + - name: Add non-nomad bootstrap DNS + lineinfile: + dest: /etc/resolv.conf + create: true + line: "nameserver {{ non_nomad_dns }}" + - name: Build Consul cluster hosts: consul_instances any_errors_fatal: true