Chapter 27. Managing containers by using the podman RHEL System Role
With the podman
RHEL System Role, you can manage Podman configuration, containers, and systemd
services which run Podman containers.
27.1. The podman RHEL System Role
You can use the podman
RHEL System Role to manage Podman configuration, containers, and systemd services which run Podman containers.
Additional resources
- Installing RHEL System Roles
-
For details about the parameters used in
podman
and additional information about thepodman
RHEL System Role, see the/usr/share/ansible/roles/rhel-system-roles.podman/README.md
file.
27.2. Variables for the podman RHEL System Role
The parameters used for the podman
RHEL System Role are:
Variable | Description |
---|---|
| Describes a podman pod and corresponding systemd unit to manage.
|
|
If true, the role ensures host directories specified in host mounts in Note Directories must be specified as absolute paths (for root containers), or paths relative to the home directory (for non-root containers), in order for the role to manage them. Anything else is ignored.
The role applies its default ownership or permissions to the directories. If you need to set ownership or permissions, see |
|
It is a dict. If using |
| It is a list of dict. Specifies ports that you want the role to manage in the firewall. This uses the same format as used by the firewall RHEL System Role. |
| It is a list of dict. Specifies ports that you want the role to manage the SELinux policy for ports used by the role. This uses the same format as used by the selinux RHEL System Role. |
|
Specifies the name of the user to use for all rootless containers. You can also specify per-container username with Note The user must already exist. |
|
Specifies the name of the group to use for all rootless containers. You can also specify a per-container group name with Note The group must already exist. |
|
Defines the |
|
Defines the |
|
Defines the |
|
Defines the |
|
Defines the |
Additional resources
- Installing RHEL System Roles
-
For details about the parameters used in
podman
and additional information about thepodman
RHEL System Role, see the/usr/share/ansible/roles/rhel-system-roles.podman/README.md
file.
27.3. Additional resources
-
For details about the parameters used in
podman
and additional information about thepodman
RHEL System Role, see the/usr/share/ansible/roles/rhel-system-roles.podman/README.md
file. -
For details about the
ansible-playbook
command, see theansible-playbook(1)
man page.