#ansible (2020-11)

ansible

Discussions related to ansible configuration management

2020-11-04

Balazs Varga avatar
Balazs Varga

hi all,

Balazs Varga avatar
Balazs Varga

quick question: I would like to lookup an dns result… I know I can do it with: {{ lookup(‘dig’, ‘example.com’, ‘qtype=NS’ ) }} but how can I dig using a variable ?

Balazs Varga avatar
Balazs Varga

to answer myself

{{ lookup('dig', variable , 'qtype=NS' ) }}
Hao Wang avatar
Hao Wang

2020-11-27

    keyboard_arrow_up