From ee3dcb4d359467693a121f7137bc1ae12310b846 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 15 Jan 2020 20:19:16 +0100 Subject: [PATCH] use `query` instead of `q` in "if files exist" example (#66409) ##### SUMMARY It's not obvious that `q` is the same as `query` (which is referred to in the name of the task) and using long-names is generally preferred in examples. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr --- lib/ansible/plugins/lookup/first_found.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/first_found.py b/lib/ansible/plugins/lookup/first_found.py index a1828e6b9c7..2e7b8b5a39a 100644 --- a/lib/ansible/plugins/lookup/first_found.py +++ b/lib/ansible/plugins/lookup/first_found.py @@ -49,7 +49,7 @@ EXAMPLES = """ files: - path/tasks.yaml - path/other_tasks.yaml - loop: "{{ q('first_found', params, errors='ignore') }}" + loop: "{{ query('first_found', params, errors='ignore') }}" - name: | copy first existing file found to /some/file,