--- - name: determine ipv6 address shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { sub(/::.$/, "::2", $2); print $2 }}' register: jailip - name: determine ipv6 net shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { sub(/::.$/, "::", $2); print $2"/64" }}' register: jailnet - name: determine primary ipv6 address shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { print $2 }}' register: primaryip