From 0e182728f265b712b118645b01c8b29e600798b5 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 1 Apr 2016 15:50:58 +0200 Subject: [PATCH] Document the behavioral change (bugfix) that converted DOS-type text files to Unix-type --- docsite/rst/porting_guide_2.0.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docsite/rst/porting_guide_2.0.rst b/docsite/rst/porting_guide_2.0.rst index a112d8ebcbf..c36d83ea959 100644 --- a/docsite/rst/porting_guide_2.0.rst +++ b/docsite/rst/porting_guide_2.0.rst @@ -199,6 +199,10 @@ Here are some corner cases encountered when updating, these are mostly caused by The bare feature itself is deprecated as an undefined variable is indistiguishable from a string which makes it difficult to display a proper error. +* Behavior of templating DOS-type text files changes with Ansible v2. + + A bug in Ansible v1 causes DOS-type text files (using a carriage return and newline) to be converted to Unix-type text files (using only a newline). In Ansible v2 this long-standing bug was finally fixed and DOS-type text files are preserved correctly. This may be confusing when you expect your playbook to not show any differences when migrating to Ansible v2, while in fact you will see every DOS-type file being completely replaced (with what appears to be the exact same content). + Porting plugins ===============