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