ansible-vault icon indicating copy to clipboard operation
ansible-vault copied to clipboard

Vault Health check fails when using dynamic ip config

Open codezninja opened this issue 1 year ago • 0 comments

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"

codezninja avatar Feb 13 '23 03:02 codezninja