Decode nomad node-ids in recovery playbook
This commit is contained in:
parent
290b8885b7
commit
bbe5bfaba4
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user