move away from bad inline var defs

partial fix for #35714
This commit is contained in:
Brian Coca 2018-02-05 15:57:37 -05:00 committed by Brian Coca
parent 8ba8d1a131
commit 297eab5073

View file

@ -55,9 +55,15 @@ You can then use ``import_tasks`` or ``include_tasks`` to include this file in y
You can also pass variables into imports and includes:: You can also pass variables into imports and includes::
tasks: tasks:
- import_tasks: wordpress.yml wp_user=timmy - import_tasks: wordpress.yml
- import_tasks: wordpress.yml wp_user=alice vars:
- import_tasks: wordpress.yml wp_user=bob wp_user: timmy
- import_tasks: wordpress.yml
vars:
wp_user: alice
- import_tasks: wordpress.yml
vars:
wp_user: bob
Variables can also be passed to include files using an alternative syntax, which also supports structured variables like dictionaries and lists:: Variables can also be passed to include files using an alternative syntax, which also supports structured variables like dictionaries and lists::