On Thursday, 2 January 2014 00:48:22 UTC+1, Kahlil Hodgson wrote:
Hi again Kahlil,
I branched my ansible setup, and patched jinja2 with the commit from github
to add the "equalto" test.
So I think the following might work:
>
> {{ ... | selectattr('scope', 'equalto', 'local') | ... }}
>
So in my playbook I wrote:
debug: msg='{{ ansible_em1.ipv6 | selectattr("scope", "equalto", "link") |
first | attr("address") }}'
But now I get the error message:
TASK: [debug msg='{{ansible_em1.ipv6 | selectattr("scope", "equalto",
"link") | first | attr("address")}}'] ***
fatal: [ns1.ams.authdns.ripe.net] => One or more undefined variables: 'dict
object' has no attribute 'address'
This is getting weirder!
--
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].
For more options, visit https://groups.google.com/groups/opt_out.