Skip to content

Commit 79ceaf3

Browse files
committed
Set connections to local
1 parent 13d04ec commit 79ceaf3

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

dyndns.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Version 1.0.0
44

55
- hosts: "localhost"
6+
connection: local
67
gather_facts: true
78

89
vars:
@@ -23,7 +24,7 @@
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:

get_connection_info.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22

33
- hosts: "localhost"
4+
connection: local
45
gather_facts: true
56

67
vars:
@@ -121,12 +122,6 @@
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 != ""
@@ -164,3 +159,10 @@
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+

0 commit comments

Comments
 (0)