ipv4 address {{ ansible_default_ipv4.address }}
On 25 August 2017 at 05:08, Anfield <gareth.has...@gmail.com> wrote: > How can I filter a variable in a template so that I can extract a fact > > Trying to get the default ipv4 address from a template > > template.j2 > ipv4 address ((ansible_default_ipv4 | grep address}} > > A similar format will work via command line but not via a template. Whats > the correct formatting required to do something like that via 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 ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/05c67110-b81c-4bd0-bd3a-04007f24697c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Dick Visser GÉANT Want to join us? We're hiring: https://www.geant.org/jobs -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNu4%2BgWHbhHgHTaQzy9F3aPRum16KWb_PAL7HvS1q0uqg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.