Verified Commit 5acf903f authored by blallo's avatar blallo
Browse files

Fix typo and use map/3 also for ip4_hosts

parent b3fe65bb
......@@ -92,7 +92,7 @@ modules:
tls_config:
insecure_skip_verify: true
{% set ip4_hosts = groups['frontend'] | map('extract', hostvars) | map(attribute='ip') %}
{% set ip4_hosts = groups['frontend'] | map('extract', hostvars, 'ip') %}
dns_frontend_a:
prober: dns
timeout: 10s
......@@ -117,7 +117,7 @@ modules:
fail_if_not_matches_regexp:
- "^accounts\\.autistici\\.org\\.\\t\\d+\\tIN\\tCNAME\\twww\\.l\\.autistici\\.org\\.$"
{% set ip6_hosts = groups['frontend'] | map('extract', hostdata, 'ip6') | reject('undefined') %}
{% set ip6_hosts = groups['frontend'] | map('extract', hostvars, 'ip6') | reject('undefined') %}
{% if ip6_hosts %}
dns_frontend_aaaa:
prober: dns
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment