From e045f46132b573c82197601ebf1cdc72b0f98c97 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Tue, 2 Jan 2018 13:55:21 +0800 Subject: [PATCH] Fix doc for with_first_found the variables in with_first_found should be list rather than dict --- lib/ansible/plugins/lookup/first_found.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ansible/plugins/lookup/first_found.py b/lib/ansible/plugins/lookup/first_found.py index 1a9291ef32..0b066b2507 100644 --- a/lib/ansible/plugins/lookup/first_found.py +++ b/lib/ansible/plugins/lookup/first_found.py @@ -37,13 +37,13 @@ EXAMPLES = """ - name: same copy but specific paths copy: src={{item}} dest=/some/file with_first_found: - files: - - foo - - "{{inventory_hostname}} - - bar - paths: - - /tmp/production - - /tmp/staging + - files: + - foo + - "{{inventory_hostname}} + - bar + paths: + - /tmp/production + - /tmp/staging - name: INTERFACES | Create Ansible header for /etc/network/interfaces template: