I am trying to create some configuration files which i intend to copy on windows host and for that i am using the template module:
- name: generate template template: src="{{item.src}}" dest="{{item.dest}}" with_items: "{{files}}" The destination is the Ansible host itself as i copy the files later on in some other script. Now for the source, i have these configuration files which (i made sure) have DOS style CRLF line endings. But somehow, the template module is converting them to LF line endings on its own, because of which i get single line files on windows host when i copy them later on. How can make sure that the line endings are preserved with template module ? Is there any option in win_copy where i can make sure that line endings are fixed before copying ? -- 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/37ff0e71-dd6d-48d9-97d0-ab991bf3810d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.