Improve formatting of include_vars doc page (#63482)
This commit is contained in:
parent
b2939c71b7
commit
70d2750e0a
1 changed files with 11 additions and 5 deletions
|
@ -114,8 +114,8 @@ EXAMPLES = r'''
|
|||
include_vars:
|
||||
dir: vars/all
|
||||
extensions:
|
||||
- json
|
||||
- jsn
|
||||
- 'json'
|
||||
- 'jsn'
|
||||
|
||||
- name: Include all default extension files in vars/all and all nested directories and save the output in test. (2.2)
|
||||
include_vars:
|
||||
|
@ -135,14 +135,20 @@ EXAMPLES = r'''
|
|||
- name: Include all .yaml files except bastion.yaml (2.3)
|
||||
include_vars:
|
||||
dir: vars
|
||||
ignore_files: [bastion.yaml]
|
||||
extensions: [yaml]
|
||||
ignore_files:
|
||||
- 'bastion.yaml'
|
||||
extensions:
|
||||
- 'yaml'
|
||||
|
||||
- name: Ignore warnings raised for files with unknown extensions while loading (2.7)
|
||||
include_vars:
|
||||
dir: vars
|
||||
ignore_unknown_extensions: True
|
||||
extensions: ['', 'yaml', 'yml', 'json']
|
||||
extensions:
|
||||
- ''
|
||||
- 'yaml'
|
||||
- 'yml'
|
||||
- 'json'
|
||||
'''
|
||||
|
||||
RETURN = r'''
|
||||
|
|
Loading…
Add table
Reference in a new issue