From 70d2750e0aa5d2d4b2b5afcd3076444f6eef8259 Mon Sep 17 00:00:00 2001 From: Michael Shen Date: Tue, 5 Nov 2019 16:48:55 -0500 Subject: [PATCH] Improve formatting of include_vars doc page (#63482) --- .../modules/utilities/logic/include_vars.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/utilities/logic/include_vars.py b/lib/ansible/modules/utilities/logic/include_vars.py index 0afe8bde8bd..58d1f00bf26 100644 --- a/lib/ansible/modules/utilities/logic/include_vars.py +++ b/lib/ansible/modules/utilities/logic/include_vars.py @@ -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'''