Using the 'pipe' lookup you can use the output of a command, e.g. " dig +short my.dns.name "
http://docs.ansible.com/playbooks_lookups.html#more-lookups On 19 February 2015 at 01:00, Charles Brown <[email protected]> wrote: > Hello, > > How do I perform name-to-IP lookups form within ansible YAML? Or even > better, a Jinja template? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/4c834f70-058b-4b03-98c6-76e4281ba0f0%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/4c834f70-058b-4b03-98c6-76e4281ba0f0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEhzMJBC35ZdAOCYLsgos9gn%2BDhZ2HAiOXDdT7tb10s1n4QXrw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
