From 521ea28229320d8ec6a0b67611a9182397df69dd Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 29 Oct 2023 20:03:08 +0100 Subject: [PATCH] fix nomad token condition Signed-off-by: vincent --- ansible/playbooks/HashicorpStack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbooks/HashicorpStack.yml b/ansible/playbooks/HashicorpStack.yml index 4575795..2f41ea3 100644 --- a/ansible/playbooks/HashicorpStack.yml +++ b/ansible/playbooks/HashicorpStack.yml @@ -23,7 +23,7 @@ - name: Gather nomad token ansible.builtin.set_fact: nomad_vault_token: "{{ nomad_token_data.login.auth.client_token }}" - when: nomad_token_data.login + when: nomad_token_data.login is defined - name: Hashicorp stack hosts: all