diff --git a/defaults/main.yml b/defaults/main.yml index 29590b8..2bae8a9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -27,7 +27,7 @@ vault_raft_cluster_members: | { "peer": "{{ server }}", "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 %} ]