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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.