File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4767Deprecated Modules (new ones in parens):
4868 * ec2_ami_search (ec2_ami_find)
You can’t perform that action at this time.
0 commit comments