Skip to main content

Mariadb Role

Deploy MariaDB as a Podman quadlet.


Variables​

VariableTypeOptionsDefaultDescription
podman_userstring---{{ ansible_user }}system user for rootless podman operations
mariadb_proxy_enabledbooltrue, falsefalseenable HTTP proxy for image pulls
mariadb_proxy_httpstring---""HTTP proxy URL
mariadb_proxy_httpsstring---""HTTPS proxy URL
mariadb_proxy_no_proxystring---""comma-separated list of proxy exclusions
mariadb_proxy_envlist of string---[]generated proxy environment entries
mariadb_network_enabledbooltrue, falsetruecreate and manage the podman network
mariadb_network_driverstring---bridgepodman network driver
mariadb_network_namestring---mariadb-internalpodman network name
mariadb_bind_ipstring---127.0.0.1host IP to bind exposed ports to
mariadb_port_map_enabledbooltrue, falsetrueexpose container ports on the host
mariadb_port_maplist of string---["3306:3306"]host:container port mappings
mariadb_versionstring---12.3container image version
mariadb_autoupdatebooltrue, falsetrueenable podman auto-update for this container
mariadb_backup_autoupdatebooltrue, falsetrueenable podman auto-update for the backup container
mariadb_admin_databasestring---mariadbadministrator database created by the MariaDB image
mariadb_admin_userstring---mariadbadministrator user created by the MariaDB image
mariadb_admin_passwordstring---""password for the MariaDB administrator user
mariadb_backup_userstring---rootdatabase user used by the backup and restore container; set this to an existing user's credentials when migrating an initialized volume
mariadb_backup_passwordstring---""password for the backup and restore database user; MARIADB_ROOT_PASSWORD does not change an initialized volume
mariadb_databaseslist of dict---[]secondary databases and users to provision and include in backups; each entry has name, user, and password
mariadb_environment_varsdict---{}extra environment variables injected into the container
mariadb_backup_schedule_timesstring---03:00backup schedule in HH:MM format
mariadb_backup_retention_daysinteger---7number of days to keep backups
mariadb_backup_compressioninteger---6zlib compression level (0-9)
mariadb_extra_fileslist of dict---[]arbitrary file entries with src (controller path) or source (target path), dest, optional mount, mode, and template
mariadb_extra_dirslist of dict---[]arbitrary directory entries with src (controller directory) or source (target path), dest, optional mount and mode
mariadb_entrypointstring---""optional MariaDB container entrypoint override
mariadb_backup_entrypointstring---""optional MariaDB backup container entrypoint override