From 8526f632554eab847e431a117d8654197bc11ccd Mon Sep 17 00:00:00 2001 From: zharalim Date: Mon, 17 Sep 2018 23:00:41 +0300 Subject: [PATCH] Enhance the note about fileglob being local (#45398) Made the note clearer and instructed to use find module for remote operations. Relating to #34497 --- lib/ansible/plugins/lookup/fileglob.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/fileglob.py b/lib/ansible/plugins/lookup/fileglob.py index 3030c8bdb2..3f988d9991 100644 --- a/lib/ansible/plugins/lookup/fileglob.py +++ b/lib/ansible/plugins/lookup/fileglob.py @@ -18,7 +18,8 @@ DOCUMENTATION = """ required: True notes: - Patterns are only supported on files, not directory/paths. - - Matching is against local system files. + - Matching is against local system files on the Ansible controller. + To iterate a list of files on a remote node, use the M(find) module. """ EXAMPLES = """