This is version 1.8.0, commit: b8163a192467da3e665c736f6c67e314a7089804.
If an ipv6 address is specified for the nomad_advertise_address, then nomad will error out with a bind: invalid argument error.
As can be seen in the basic.hcl the problem is that the ports are simply being appended to the nomad_advertise_address. IPv6 syntax requires that the IP portion be placed within brackets - e.g
[fdd3:ecf5:726d:5fbf:2e99:93f6:ba25:8570]:4646 rather than fdd3:ecf5:726d:5fbf:2e99:93f6:ba25:8570:4646
Followup:
I worked around this by changing the base.hcl.j2 by adding the ipwrap filter as described in the Ansible docs here.
Note that the ipwrap filter requires that the netaddr package to be installed on the ansible server. It does not need to be installed on the remote client.
I tested it with both ipv6 and ipv4 addresses and it seems to work. Your mileage may vary :-)
This is version 1.8.0, commit: b8163a192467da3e665c736f6c67e314a7089804. If an ipv6 address is specified for the nomad_advertise_address, then nomad will error out with a bind: invalid argument error.
As can be seen in the basic.hcl the problem is that the ports are simply being appended to the nomad_advertise_address. IPv6 syntax requires that the IP portion be placed within brackets - e.g [fdd3:ecf5:726d:5fbf:2e99:93f6:ba25:8570]:4646 rather than fdd3:ecf5:726d:5fbf:2e99:93f6:ba25:8570:4646
Followup: I worked around this by changing the base.hcl.j2 by adding the ipwrap filter as described in the Ansible docs here.
Note that the ipwrap filter requires that the netaddr package to be installed on the ansible server. It does not need to be installed on the remote client.
I tested it with both ipv6 and ipv4 addresses and it seems to work. Your mileage may vary :-)