I checked and on a debug message do not see single-quotes in the stdout. 
Adding the | safe also didn't help. So it seems that still either jinja or 
ansible is throwing single-quotes around the variable data before writing 
it to file. I don't see this same behavior when writing the same block 
using the template module, so this may be specific to lineinfile.

I'm running the most recent build, v1.7



On Saturday, August 2, 2014 2:24:44 PM UTC-4, Michael DeHaan wrote:
>
> Let me know what version of Ansible you are running?
>
> In light of some security fixes, it took a few revs to nail quoting in 
> some cases.
>
> All being said, 1.6.10 is good stuff on that front.   
>
>
>
>
> On Sat, Aug 2, 2014 at 1:16 PM, Amr Ali <amre...@gmail.com <javascript:>> 
> wrote:
>
>> This is strange, does the output itself have the quotes or it gets added 
>> by jinja? can you post the "vagrant_ssh_config" output?
>>
>> maybe you can try doing this it will stop jinja from automatically 
>> escaping your variables based on your environment :
>>
>> {{ vagrant_ssh_config.stdout | safe }}
>>
>>
>>  -- 
>> 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-proje...@googlegroups.com <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/62c15bc7-768e-485c-8850-557c4ef14251%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/62c15bc7-768e-485c-8850-557c4ef14251%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/1bf57fe6-7105-44ff-9a90-7436a818c362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to