Matthieu,

I was able to use the pipe lookup to get around this:

- authorized_key: user=bob key='{{lookup("pipe", 
"cat /some/absolute/path/id_*.pub" )}}'

On Tuesday, December 9, 2014 11:32:23 AM UTC-5, Mathieu Guillaume wrote:
>
> Looks like some kind of parsing issue, if I use the full YAML syntax below 
> it works, but not if I use key=...
>
> Working:
>
> - authorized_key:
>     user: bob
>     key: "{{lookup('file',item)}}"
>   with_fileglob:
>   - /some/absolute/path/id_*.pub
>
> Not working:
>
> - authorized_key: user=bob key='{{lookup("file", item)}}'
>   with_fileglob:
>   - /some/absolute/path/id_*.pub
>
>
> On Tuesday, December 9, 2014 5:04:00 PM UTC+1, Brian Coca wrote:
>>
>> I did very simple (if contrived) test and this seems to work fine: 
>>
>>
>>    - copy: content={{lookup('file',item)}} dest=/tmp/{{item|basename}} 
>>      with_fileglob: 
>>         - files/* 
>>
>>
>> -- 
>> 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/b4471431-741a-47d3-8ee9-7c35258be58a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to