Commit 97a851cb authored by Jürgen Haas's avatar Jürgen Haas

Improve DNS digging

parent e6441bd6
Pipeline #6762 passed with stage
in 5 minutes and 16 seconds
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
domain='{{ item.1|default(item.domain|default("localhost")) }}' domain='{{ item.1|default(item.domain|default("localhost")) }}'
main='{{ (item.0|default(item)) }}' main='{{ (item.0|default(item)) }}'
- debug: msg='{{ domain }}'
- assert: - assert:
that: that:
- "'{{ main.ip }}' == '{{ lookup('dig', domain, 'qtype=A', '@8.8.8.8') }}'" - "'{{ main.ip }}' == '{{ lookup('dig', domain, 'qtype=A', '@8.8.8.8') }}'"
......
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