grafana-ansible-collection icon indicating copy to clipboard operation
grafana-ansible-collection copied to clipboard

IPv6 address format incompatibility in wait_for action

Open sometimes-i-send-pull-requests opened this issue 1 year ago • 0 comments

I have been using the grafana role from this collection to manage Grafana. My network uses IPv6, and I only want to bind to one of the interfaces with a particular address, so I had a line like this in my variables file:

grafana_address: "fdfe:3f06:f62b:0:4489:d5ff:fe9a:efd3"

This worked fine for a while. But recently, Grafana has changed its accepted formats for IPv6 addresses, and now requires them to be wrapped with square brackets (https://github.com/grafana/grafana/issues/81870, https://github.com/grafana/grafana/issues/81991). So I updated my variables file accordingly:

grafana_address: "[fdfe:3f06:f62b:0:4489:d5ff:fe9a:efd3]"

With this change, Grafana is now able to start up. However, Ansible doesn't understand this address format, and running the playbook now hangs on the "Wait for grafana to start" task. There does not seem to be a way to configure an IPv6 address using the Ansible grafana role any more that works with both Grafana and the Ansible grafana role.