No description
  • Shell 53.3%
  • Just 24.6%
  • Jinja 22.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-02 02:11:35 +00:00
.github Update molecule.yml: safeguard for running multiple scenarios 2026-09-02 11:44:47 -04:00
bin Autotag every role-affecting commit, state-based 2026-08-23 15:34:57 +03:00
defaults Add *_process_extra_arguments 2026-09-19 12:14:41 -04:00
docs Update docs 2026-08-21 02:25:29 -04:00
LICENSES Make the project compliant with REUSE 2025-02-12 21:07:27 +09:00
meta Update meta/main.yml 2026-08-21 02:35:12 -04:00
molecule Update dependency ansible-role-postgres to v18.6-11 2026-11-02 02:11:35 +00:00
tasks Replace Postgres-backup and postgres-backup with postgres-backup-local 2026-08-21 02:23:44 -04:00
templates Add *_process_extra_arguments 2026-09-19 12:14:41 -04:00
.ansible-lint Enable pre-commit 2025-06-12 15:55:16 +09:00
.gitignore Add Molecule testing (default scenario) 2026-08-23 15:34:46 +03:00
.pre-commit-config.yaml Update pre-commit repositories and hooks 2026-10-29 06:43:30 -08:00
.python-version Add Molecule testing (default scenario) 2026-08-23 15:34:46 +03:00
.yamllint.yml Enable pre-commit 2025-06-12 15:55:16 +09:00
justfile justfile: git hooks resolve prek through the mise shim 2026-08-25 16:20:53 +03:00
mise.toml mise: drop the settings block - yes is ignored in project configs 2026-08-16 09:26:49 +03:00
README.md Update README.md: add a section about releases 2026-10-02 02:53:24 -04:00
REUSE.toml Add Molecule testing (default scenario) 2026-08-23 15:34:46 +03:00

postgres-backup-local Ansible role

REUSE status

This is an Ansible role which installs postgres-backup-local to run as a Docker container wrapped in a systemd service.

This role implicitly depends on:

Usage

💡 Refer to this page for details about setting up the service with this role.

Example playbook:

- hosts: servers
  roles:
    - role: galaxy/com.devture.ansible.role.systemd_docker_base

    - role: galaxy/postgres_backup

    - role: another_role

Example playbook configuration (group_vars/servers or other):

postgres_backup_identifier: my-postgres-backup

postgres_backup_architecture: amd64

postgres_backup_base_path: "{{ my_base_path }}/postgres-backup"

postgres_backup_container_network: "{{ my_container_container_network }}"

postgres_backup_uid: "{{ my_uid }}"
postgres_backup_gid: "{{ my_gid }}"

postgres_backup_connection_hostname: ""
postgres_backup_connection_username: ""
postgres_backup_connection_password: ""

# If Postgres is running on the same machine, set this to its data path,
# so the Postgres version will be autodetected.
postgres_backup_postgres_data_path: ""
# Alternatively, you'd need to configure `postgres_backup_container_image_to_use`.

postgres_backup_databases_auto: ['first', 'second', 'third']

Development

pre-commit

You can optionally install a Git pre-commit hook (via mise + prek) that runs formatting and linting checks before each commit. See .pre-commit-config.yaml for which hooks are to be executed.

To install the hook, run the just command below:

just prek-install-git-pre-commit-hook

Molecule

This role supports Molecule, an Ansible testing framework designed for developing and testing Ansible collections, playbooks, and roles.

Refer to this page for details about how to utilize it.

Releases

Tags are created on the GitHub workflow by .github/workflows/autotag.yml, which asks bin/compute-next-tag.sh what the commit on main should be released as. The answer comes from the version pinned in defaults/main.yml and from the tags that already exist, so a commit that only touches documentation or CI is not released at all, and any change to the role itself is — without waiting for a dependency bump to carry it along.

bin/test-compute-next-tag.sh exercises that script against throwaway repositories, and runs as a prek hook.