containers.podman.podman_quadlet_info module – Gather information about Podman Quadlets
Note
This module is part of the containers.podman collection (version 1.19.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install containers.podman.
To use it in a playbook, specify: containers.podman.podman_quadlet_info.
Synopsis
List installed Podman Quadlets or print one quadlet content using
podman quadlet list/print.Gather information about Podman Quadlets available on the system.
Parameters
Parameter |
Comments |
|---|---|
Extra global arguments to pass to the These are placed after the executable and before the subcommand. |
|
Return additional debug information. Choices:
|
|
Path to the podman executable. Default: |
|
List of quadlet kinds to filter by (based on file suffix). For example, Choices:
|
|
Name of the quadlet to print content for. When specified, runs |
|
Filter results to quadlets whose path is under this directory. By default no filtering is applied. |
Examples
- name: List all quadlets
containers.podman.podman_quadlet_info:
- name: Get information about a specific quadlet
containers.podman.podman_quadlet_info:
name: myapp.container
- name: List only container quadlets
containers.podman.podman_quadlet_info:
kinds:
- container
- name: List quadlets in a custom directory
containers.podman.podman_quadlet_info:
quadlet_dir: /etc/containers/systemd
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Always false Returned: always |
|
Content of the quadlet when name is provided Returned: when name is provided |
|
List of installed quadlets when listing Returned: when name is not provided |
|
podman stderr Returned: when debug=true |
|
podman stdout Returned: when debug=true |