diff options
Diffstat (limited to 'lib/ansible/plugins/lookup/fileglob.py')
-rw-r--r-- | lib/ansible/plugins/lookup/fileglob.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ansible/plugins/lookup/fileglob.py b/lib/ansible/plugins/lookup/fileglob.py index abf8202e..00d5f092 100644 --- a/lib/ansible/plugins/lookup/fileglob.py +++ b/lib/ansible/plugins/lookup/fileglob.py @@ -21,7 +21,10 @@ DOCUMENTATION = """ - See R(Ansible task paths,playbook_task_paths) to understand how file lookup occurs with paths. - Matching is against local system files on the Ansible controller. To iterate a list of files on a remote node, use the M(ansible.builtin.find) module. - - Returns a string list of paths joined by commas, or an empty list if no files match. For a 'true list' pass C(wantlist=True) to the lookup. + - Returns a string list of paths joined by commas, or an empty list if no files match. For a 'true list' pass O(ignore:wantlist=True) to the lookup. + seealso: + - ref: playbook_task_paths + description: Search paths used for relative files. """ EXAMPLES = """ @@ -50,8 +53,7 @@ import os import glob from ansible.plugins.lookup import LookupBase -from ansible.errors import AnsibleFileNotFound -from ansible.module_utils._text import to_bytes, to_text +from ansible.module_utils.common.text.converters import to_bytes, to_text class LookupModule(LookupBase): |