ansible-vault
ansible-vault copied to clipboard
Vault Health check fails when using dynamic ip config
Description
Vault supports dynamic config for ip resolution using go-sockaddr. I'm able to using this module to set the config I need by using vault_address: !unsafe '{{ GetPrivateIP }}'
.
The problem is during the reachable task. It is unable to use that value.
Current workaround is to just disable the health check using vault_disable_api_health_check
but it be nice if we could maybe update this to support maybe using ansible default ipv4 value instead? Like url: "http://{{ ansible_default_ipv4.address }}:{{ vault_port }}/v1/sys/health"