Rôle de déploiement de podman.
Go to file
2024-10-28 13:48:13 +01:00
defaults refacto: Rewriting for Debian Sid 2024-10-28 13:48:13 +01:00
handlers refacto: Rewriting for Debian Sid 2024-10-28 13:48:13 +01:00
meta refacto: Rewriting for Debian Sid 2024-10-28 13:48:13 +01:00
tasks refacto: Rewriting for Debian Sid 2024-10-28 13:48:13 +01:00
templates refactor: Use alvistack repository 2024-06-08 02:38:36 +02:00
vars refacto: Rewriting for Debian Sid 2024-10-28 13:48:13 +01:00
.gitignore Initial commit 2023-12-21 15:36:50 +00:00
LICENSE Initial commit 2023-12-21 15:36:50 +00:00
README.md refacto: Rewriting for Debian Sid 2024-10-28 13:48:13 +01:00

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