ansible templates automatic conversion from windows to unix

21 views
Skip to first unread message

Ioannis Cherouvim

unread,
Feb 6, 2017, 9:41:47 AM2/6/17
to Ansible Project
Hello

All of my playbooks target linux machines, but some of the j2 templates on those playbooks have a windows line ending style due to the way they were initially created (on windows machines). Is there an automatic way for the template directive to also apply a dos2unix style conversion? I know I can convert the templates themselves, but I've got many developers touching and adding templates so I'd like an automatic way for the conversion while rendering.

thanks
Reply all
Reply to author
Forward
0 new messages