fixed ip variables, now using inventory vars

This commit is contained in:
2024-11-26 13:09:26 +01:00
parent fe04b3fe87
commit 158048f51d
4 changed files with 11 additions and 5 deletions

View File

@@ -1,12 +1,13 @@
---
- name: determine ipv6 address
shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { sub(/::.$/, "::2", $2); print $2 }}'
- name: determine ipv6 jail address
shell: echo {{ server_ipv6 }} | sed 's/::1/::2/'
register: jailip
- name: determine ipv6 net
shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { sub(/::.$/, "::", $2); print $2"/64" }}'
shell: echo '{{ ipv6_network }}/64'
register: jailnet
- name: determine primary ipv6 address
shell: ifconfig {{ netif.primary }} inet6 | awk '{ if (/2a01/) { print $2 }}'
shell: echo {{ server_ipv6 }}
register: primaryip