Just to follow up, I have created new PRs which include the fixes described 
by Joey and added documentation about windows-style line endings to 
win_template module docs.

PRs are

https://github.com/ansible/ansible/pull/11086

https://github.com/ansible/ansible-modules-core/pull/1438


Jon
On Wednesday, February 11, 2015 at 6:37:22 PM UTC, J Hawkesworth wrote:
>
> Hi,
>
> Been meaning to say I discovered a few days ago that you can set the 
> following in your j2 templates to ensure windows-style line endings
>
> #jinja2: newline_sequence:'\r\n'
>
> I still want to do automatic detection of this but there is at least a 
> workaround (which would likely be backwardly compatible once auto detection 
> is in place).
>
> Jon
>
>
>
> On Thursday, December 18, 2014 at 5:48:02 PM UTC, Joey wrote:
>>
>> I'm using win_template to copy a text file with a couple variables to a 
>> windows client. However, it seems to be removing all lines breaks from the 
>> file. I tried using unix2dos on the template, as well as adding 
>> "#jinja2:trim_blocks: 
>> False", but neither one seemed to work. Any other ideas?
>>
>

-- 
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/161ab852-7b7e-4a86-952e-99f32063a794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to