I've tried that as well. I don't think it works because I used the 
following and it did not throw an error. Notice, I used "token123" and it 
didn't error out at all.
 
{{ lookup('consul_kv', item, token123="mysecretoken") }}




On Friday, August 21, 2015 at 4:16:53 PM UTC-4, Matt Martz wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/538f6212-05c9-4dfa-b7a4-e66e127449cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to