fix: add port to default raft peer

This commit is contained in:
vincent 2024-02-04 21:30:47 +01:00
parent 9120160b94
commit 70c820f3b4

View File

@ -27,7 +27,7 @@ vault_raft_cluster_members: |
{ {
"peer": "{{ server }}", "peer": "{{ server }}",
"api_addr": "{{ hostvars[server]['vault_api_addr'] | "api_addr": "{{ hostvars[server]['vault_api_addr'] |
default( vault_protocol + '://' + hostvars[server]['ansible_' + hostvars[server][vault_iface]]['ipv4']['address'] ) }}" default( vault_protocol + '://' + hostvars[server]['ansible_' + hostvars[server]['vault_iface']]['ipv4']['address']+ ':' + vault_port|string ) }}"
}, },
{% endfor %} {% endfor %}
] ]