2024-11-08 20:08:56 +01:00
|
|
|
---
|
2024-11-21 19:38:55 +01:00
|
|
|
- name: determine ipv6 address
|
|
|
|
|
shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { sub(/::.$/, "::2", $2); print $2 }}'
|
|
|
|
|
register: jailip
|
2024-11-08 20:08:56 +01:00
|
|
|
|
2024-11-21 19:38:55 +01:00
|
|
|
- name: determine ipv6 net
|
|
|
|
|
shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { sub(/::.$/, "::", $2); print $2"/64" }}'
|
|
|
|
|
register: jailnet
|
2024-11-25 13:13:21 +01:00
|
|
|
|
|
|
|
|
- name: determine primary ipv6 address
|
|
|
|
|
shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { print $2 }}'
|
|
|
|
|
register: primaryip
|