I think the problem is in that the entire kwarg is quoted in your example:
{{ lookup('consul_kv',item,"token=mysecretoken") }}
It should probably be:
{{ lookup('consul_kv', item, token="mysecretoken") }}
Just quote the value, not the arg name.
On Fri, Aug 21, 2015 at 3:14 PM, Brian Coca <[email protected]> wrote:
> ah, yes, i missed that, i was looking at the env variables
>
> self.agent_url = 'http://localhost:8500'
> if os.getenv('ANSIBLE_CONSUL_URL') is not None:
> self.agent_url = os.environ['ANSIBLE_CONSUL_URL']
>
> do you get any errors when trying to use the token?
>
> --
> Brian Coca
>
> --
> 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/CAJ5XC8%3D1SpYtv1%3DmNVxg_GVcaNR9XtCoGGCHpA44UPWQMZxobA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Matt Martz
@sivel
sivel.net
--
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/CAD8N0v-uBbwBOB5LTy1TnM_7euxMYJEpRFv_Jq-eMhagQt8bMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.