Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21ee4b0

Browse files
committed
Add more details to the changelog -- may move this to a porting guide
later
1 parent b2cb315 commit 21ee4b0

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,27 @@ Major Changes:
4242
* When a string with a trailing newline was specified in the playbook via yaml
4343
dict format, the trailing newline was stripped. When specified in key=value
4444
format the trailing newlines were kept. In v2, both methods of specifying the
45-
string will keep the trailing newlines.
45+
string will keep the trailing newlines. If you relied on the trailing
46+
newline being stripped you can change your playbook like this::
47+
48+
# Syntax in 1.9.2
49+
vars:
50+
message: >
51+
Testing
52+
some things
53+
tasks:
54+
- debug:
55+
msg: "{{ message }}"
56+
# Syntax in 2.0.x
57+
vars:
58+
old_message: >
59+
Testing
60+
some things
61+
message: "{{ old_messsage[:-1] }}"
62+
- debug:
63+
msg: "{{ message }}"
64+
# Output
65+
"msg": "Testing some things"
4666

4767
Deprecated Modules (new ones in parens):
4868
* ec2_ami_search (ec2_ami_find)

0 commit comments

Comments
 (0)