Fix consul recovery and decode node ids
This commit is contained in:
parent
e0c8d1f3c1
commit
acdccbc057
@ -38,7 +38,7 @@
|
||||
- name: Node Info
|
||||
debug:
|
||||
msg: |
|
||||
node_id: {{ consul_node_id.content }}
|
||||
node_id: {{ consul_node_id.content | b64decode }}
|
||||
address: {{ ansible_default_ipv4.address }}
|
||||
|
||||
- name: Save
|
||||
@ -49,7 +49,7 @@
|
||||
[
|
||||
{% for host in ansible_play_hosts -%}
|
||||
{
|
||||
"id": "{{ hostvars[host].consul_node_id.content }}",
|
||||
"id": "{{ hostvars[host].consul_node_id.content | b64decode }}",
|
||||
"address": "{{ hostvars[host].ansible_default_ipv4.address }}:8300",
|
||||
"non_voter": false
|
||||
}{% if not loop.last %},{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user