diff --git a/nomad/setup-cluster.yml b/nomad/setup-cluster.yml index 65f9692..a44aab2 100644 --- a/nomad/setup-cluster.yml +++ b/nomad/setup-cluster.yml @@ -60,18 +60,14 @@ # pointing to 127.0.0.1 and possibly restart Docker and Nomad - name: Add values + delegate_to: localhost + run_once: true block: - name: Install python-consul pip: name: python-consul extra_args: --index-url https://pypi.org/simple - - name: Add a value to Consul - consul_kv: - host: "{{ inventory_hostname }}" - key: ansible_test - value: Hello from Ansible! - - name: Set hostname consul_kv: host: "{{ inventory_hostname }}" @@ -79,9 +75,6 @@ # TODO: propogate this through via Consul and Nomad templates rather than Terraform value: dev.homelab - delegate_to: localhost - run_once: true - - name: Setup Vault cluster hosts: vault_instances