fileglob

Collection: community.general

Full Name: parallax.community.general.fileglob

Aliases: community.general.fileglob, fileglob

Controller module — runs on the local controller, not on remote hosts.

Synopsis

List controller-side files matching a glob pattern

Parameters

NameTypeRequiredDefaultDescription
pathsstringyesPath(s) to search for files
patternsstring*Pattern(s) to match files against
recurseboolfalseWhether to search recursively

Example

- name: List the certificates to upload
  fileglob:
    paths: files/certs
    patterns: "*.pem"