Skip to content
Snippets Groups Projects
Commit e7729dae authored by Citrullin's avatar Citrullin Committed by Florian Ruynat
Browse files

Add assertion for IPv6 in verify settings

parent 97b4d79e
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@
- name: Stop if ip var does not match local ips
assert:
that: ip in ansible_all_ipv4_addresses
msg: "'{{ ansible_all_ipv4_addresses }}' do not contain '{{ ip }}'"
that: (ip in ansible_all_ipv4_addresses) or (ip in ansible_all_ipv6_addresses)
msg: "IPv4: '{{ ansible_all_ipv4_addresses }}' and IPv6: '{{ ansible_all_ipv6_addresses }}' do not contain '{{ ip }}'"
when:
- not ignore_assert_errors
- ip is defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment