From 41343a6d2c643633e68b5188fc2e64c83f961a25 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 28 Jun 2022 12:08:23 -0700 Subject: [PATCH] Small improvement to consul kv role --- nomad/setup-cluster.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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