File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 33# Version 1.0.0
44
55- hosts : " localhost"
6+ connection : local
67 gather_facts : true
78
89 vars :
2324 ansible.builtin.assert :
2425 that : " {{ external_ip_address | length > 0 }}"
2526 fail_msg : " It seems that you haven't provided an external IPv4 Address."
26- success_msg : " IPv6 Address provided. Proceeding."
27+ success_msg : " IPv4 Address provided. Proceeding."
2728
2829 - name : Assert that external IPv6 Address is set if no prefix was read
2930 when :
Original file line number Diff line number Diff line change 11---
22
33- hosts : " localhost"
4+ connection : local
45 gather_facts : true
56
67 vars :
121122 debug :
122123 var : external_ip.matches[0].NewExternalIPAddress
123124
124- - name : Print external IPv6 address
125- when :
126- - ipv6_identifier == ""
127- debug :
128- var : external_ipv6.matches[0].NewExternalIPv6Address
129-
130125 - name : Print IPv6 prefix address
131126 when :
132127 - ipv6_identifier != ""
164159 set_fact :
165160 ipv6_external_address : " {{ ipv6_prefix_without_colon ~ ipv6_identifier }}"
166161
162+ - name : Print external IPv6 address
163+ when :
164+ - ipv6_external_address == ""
165+ debug :
166+ var : ipv6_external_address
167+
168+
You can’t perform that action at this time.
0 commit comments