|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/lib/python3.9/site-packages/ansible/plugins/filter/ |
DOCUMENTATION:
name: fileglob
short_description: explode a path glob to matching files
description:
- Return a list of files that matches the supplied path glob pattern.
- Filters run on the controller, so the files are matched from the controller's file system.
positional: _input
options:
_input:
description: Path glob pattern.
type: string
required: true
EXAMPLES: |
# found = ['/etc/hosts', '/etc/hasts']
found: "{{ '/etc/h?sts' | fileglob }}"
RETURN:
_value:
description: List of files matched.
type: list
elements: string