mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
Make example of deprecated args clearer
This commit is contained in:
parent
4958180333
commit
be9d817618
1 changed files with 8 additions and 1 deletions
|
@ -56,7 +56,7 @@ uses key=value escaping which has not changed. The other option is to check for
|
||||||
"msg": "Testing some things"
|
"msg": "Testing some things"
|
||||||
|
|
||||||
* When specifying complex args as a variable, the variable must use the full jinja2
|
* 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
|
In fact, even specifying args with variables has been deprecated, and will not be
|
||||||
allowed in future versions::
|
allowed in future versions::
|
||||||
|
|
||||||
|
@ -100,7 +100,14 @@ While all items listed here will show a deprecation warning message, they still
|
||||||
debug_params:
|
debug_params:
|
||||||
msg: "hello there"
|
msg: "hello there"
|
||||||
tasks:
|
tasks:
|
||||||
|
# These are both deprecated:
|
||||||
- debug: "{{debug_params}}"
|
- 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.
|
* 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].
|
* Ranges specified in host patterns should use the [x:y] syntax, instead of [x-y].
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue