2.5 KiB
role_podman
Install podman and manage pods and containers.
Pre-requisite
The podman user (podman_user
) must be created before executing this role.
Variables
podman_packages
List of packages to install in order to use podman.
Default value: ["catatonit", "dbus-user-session", "passt", "podman", "podman-docker", "uidmap", "systemd-container"]
podman_fix_pasta
On bookworm, we need to fix pasta to use podman (see here).
Default value: false
podman_user
Users with container configuration.
Default value: podman
podman_configure_rsyslog
Status of messages from the podman binary and from binaries in containers if they're equalto the container name.
Default value: true
podman_ssh_host
Host to be tested for instance availability.
Default value: {{ inventory_hostname }}
podman_ssh_port
Port to be tested for instance availability.
Default value: 22
podman_auto_update
Status of the automatic container update service.
Default value: true
podman_pods
List of dictionnaries to define pods (see ansible documentation).
Default value: none
podman_containers
List of dictionnaries to define containers (see ansible documentation).
Default value: none
Extras
It's possible to use this role with the alvistack repository by setting the variables to the following values:
# BEGIN role_podman
podman_packages:
- catatonit
- dbus-user-session
- containernetworking-dnsname
- containernetworking-plugins
- containernetworking-podman-machine
- passt
- podman
- podman-aardvark-dns
- podman-docker
- podman-gvproxy
- podman-netavark
- python3-podman-compose
- uidmap
- systemd-container
podman_fix_pasta: true
# END role_podman