Clarify example for fileglob lookup plugin (#54941)
fileglob returns a list of paths it does not return file contents, as explained in latest notes. The file lookup retrieves file contents. This change clarifies the first example to make it clear a paths, not contents, are returned. It also adds spaces around the lookup to avoid E206 from ansible-lint: "Variables should have spaces before and after: {{ var_name }}" +label: docsite_pr
This commit is contained in:
parent
c637104078
commit
889024e101
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ DOCUMENTATION = """
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
- name: display content of all .txt files in dir
|
- name: Display paths of all .txt files in dir
|
||||||
debug: msg={{lookup('fileglob', '/my/path/*.txt')}}
|
debug: msg={{ lookup('fileglob', '/my/path/*.txt') }}
|
||||||
|
|
||||||
- name: Copy each file over that matches the given pattern
|
- name: Copy each file over that matches the given pattern
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in a new issue