From be9d817618bf4f0c9098f66b5afdc315476be2dd Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 13 Jan 2016 12:35:05 -0800 Subject: [PATCH] Make example of deprecated args clearer --- docsite/rst/porting_guide_2.0.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docsite/rst/porting_guide_2.0.rst b/docsite/rst/porting_guide_2.0.rst index 543be052bdc..f22b44257db 100644 --- a/docsite/rst/porting_guide_2.0.rst +++ b/docsite/rst/porting_guide_2.0.rst @@ -56,7 +56,7 @@ uses key=value escaping which has not changed. The other option is to check for "msg": "Testing some things" * When specifying complex args as a variable, the variable must use the full jinja2 - variable syntax ('{{var_name}}') - bare variable names there are no longer accepted. + variable syntax (```{{var_name}}```) - bare variable names there are no longer accepted. In fact, even specifying args with variables has been deprecated, and will not be allowed in future versions:: @@ -100,7 +100,14 @@ While all items listed here will show a deprecation warning message, they still debug_params: msg: "hello there" tasks: + # These are both deprecated: - debug: "{{debug_params}}" + - debug: + args: "{{debug_params}}" + + # Use this instead: + - debug: + msg: "{{debug_params['msg']}}" * Host patterns should use a comma (,) or colon (:) instead of a semicolon (;) to separate hosts/groups in the pattern. * Ranges specified in host patterns should use the [x:y] syntax, instead of [x-y].