benschubert.infrastructure.postgres role – Configure a PostgreSQL instance using podman

Note

This role is part of the benschubert.infrastructure collection (version 0.0.1).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install benschubert.infrastructure.

To use it in a playbook, specify: benschubert.infrastructure.postgres.

Entry point main – Configure a PostgreSQL instance using podman

Synopsis

Parameters

Parameter

Comments

monitoring_grafana_config_path

string / required

The path to where the Grafana configuration is kept

This is used to install a basic PostgreSQL dashboard for viewing metrics

postgres_data_path

string / required

The path on disk where to store the data from PostgreSQL

postgres_database

string / required

The name of the database to create

postgres_image

string

The container image path and tag to use for Postgres

Default: "docker.io/library/postgres:latest"

postgres_network

string / required

The name of the podman network to which the PostgreSQL instance will be exposed

postgres_password_secret

string / required

The podman secret containing the password to connect to the database

postgres_pod

string / required

The name to give the podman pod in which the PostgreSQL container will be launched

postgres_user

string / required

The name of the user to use to connect to the database