postgresql
Deploy PostgreSQL as a Podman quadlet.
Usage
- hosts: all roles: - role: giftpilz0.container.postgresqlVariables
- podman_userstr
System user for rootless podman operations.
Default{{ ansible_user }} Image name without tag.
Defaultdocker.io/library/postgresContainer image version.
Default18.6-alpineEnable podman auto-update for PostgreSQL.
DefaulttrueEnable podman auto-update for the backup container.
DefaulttrueCreate and manage the podman network.
DefaulttruePodman network name.
Defaultpostgresql-internalPodman network driver.
DefaultbridgeExpose container ports on the host.
DefaultfalseHost IP to bind exposed ports to.
Default127.0.0.1- postgresql_port_maplist[str]
Host:container port mappings.
Default- 5432:5432 PostgreSQL log destination.
DefaultstderrSQL statement logging level.
ChoicesnoneddlmodallDefaultnoneLog statements running at least this many milliseconds.
Default1000Log successful connection attempts.
DefaulttrueLog session disconnections.
DefaulttrueLog checkpoint activity.
DefaulttrueLog waits exceeding deadlock timeout.
DefaulttrueContext prefix for each PostgreSQL log line.
Default%m [%p] db=%d,user=%u,app=%a,client=%hAdministrator database created by the PostgreSQL image.
DefaultpostgresAdministrator user created by the PostgreSQL image.
DefaultpostgresPassword for the PostgreSQL administrator user.
Default""- postgresql_userslist[dict]
Users to provision; each entry has name and password.
Default[] - postgresql_databaseslist[dict]
Secondary databases to provision and include in backups; each entry has name and owner.
Default[] Time of day to run backup (HH:MM format).
Default03:00Number of days to keep backups.
Default7Gzip compression level (1-9).
Default6Extra environment variables for the container.
DefaultPOSTGRES_DB: '{{ postgresql_admin_database }}' POSTGRES_USER: '{{ postgresql_admin_user }}' POSTGRES_PASSWORD: '{{ postgresql_admin_password }}'Optional PostgreSQL container entrypoint override.
Default""Optional PostgreSQL backup container entrypoint override.
Default""- postgresql_extra_fileslist[dict]
Arbitrary file entries with src (controller path) or source (target path), dest, optional mount, mode, and template.
Default[] - postgresql_extra_dirslist[dict]
Arbitrary directory entries with src (controller directory) or source (target path), dest, optional mount and mode.
Default[]
No variables match.