From b7a9d99cefe15b248ebc11162529d16babd28d7f Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Tue, 8 Oct 2019 14:41:54 +0200 Subject: [PATCH] Add spaces around {{ indicators. (#63125) ##### SUMMARY The example looked a little less readable by not having spaces after `{{` and before `}}`. This commit should make the examples match [ansible-lint rule 206](https://github.com/ansible/ansible-lint/blob/master/lib/ansiblelint/rules/VariableHasSpacesRule.py) ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr --- lib/ansible/plugins/lookup/items.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/lookup/items.py b/lib/ansible/plugins/lookup/items.py index 3fa0f07f7e3..6a4299e70b7 100644 --- a/lib/ansible/plugins/lookup/items.py +++ b/lib/ansible/plugins/lookup/items.py @@ -24,7 +24,7 @@ DOCUMENTATION = """ EXAMPLES = """ - name: "loop through list" debug: - msg: "An item: {{item}}" + msg: "An item: {{ item }}" with_items: - 1 - 2 @@ -41,7 +41,7 @@ EXAMPLES = """ - name: "loop through list from a variable" debug: - msg: "An item: {{item}}" + msg: "An item: {{ item }}" with_items: "{{ somelist }}" - name: more complex items to add several users