13 lines
340 B
Plaintext
13 lines
340 B
Plaintext
|
# Netzwerk-Daten
|
||
|
IP: {{ ansible_default_ipv4.address }}
|
||
|
Netzmaske: {{ ansible_default_ipv4.netmask }}
|
||
|
Gateway: {{ ansible_default_ipv4.gateway }}
|
||
|
|
||
|
# IPv6
|
||
|
## Als String
|
||
|
{{ ansible_all_ipv6_addresses|join(" und ") }}
|
||
|
## Als Schleife
|
||
|
{% for a in ansible_all_ipv6_addresses %}{{ loop.index }}{{ loop.cycle('-', ' ', ' ')}}{{ a }}
|
||
|
{% endfor %}
|
||
|
|