From bbe5bfaba4c5d08074c7048a96bf394a3ffeb419 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Sat, 7 Jan 2023 14:09:19 -0800 Subject: [PATCH] Decode nomad node-ids in recovery playbook --- ansible_playbooks/recover-nomad.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_playbooks/recover-nomad.yaml b/ansible_playbooks/recover-nomad.yaml index daa4a5f..4d074f7 100644 --- a/ansible_playbooks/recover-nomad.yaml +++ b/ansible_playbooks/recover-nomad.yaml @@ -18,7 +18,7 @@ - name: Node Info debug: msg: | - node_id: {{ nomad_node_id.content }} + node_id: {{ nomad_node_id.content | b64decode }} address: {{ ansible_default_ipv4.address }} - name: Save @@ -29,7 +29,7 @@ [ {% for host in ansible_play_hosts -%} { - "id": "{{ hostvars[host].nomad_node_id.content }}", + "id": "{{ hostvars[host].nomad_node_id.content | b64decode }}", "address": "{{ hostvars[host].ansible_default_ipv4.address }}:4647", "non_voter": false }{% if not loop.last %},{% endif %}