Skip to content

An Ansible role that sets up prodrigestivill/docker-postgres-backup-local to run as a Docker container wrapped in a systemd service

Notifications You must be signed in to change notification settings

mother-of-all-self-hosting/ansible-role-postgres-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgres-backup Ansible role

This is an Ansible role which sets up prodrigestivill/docker-postgres-backup-local for backing up Postgres (no matter if it's installed via mother-of-all-self-hosting/ansible-role-postgres or not).

The postgres-backup service is installed to run as a Docker container wrapped in a systemd service.

This role implicitly depends on:

Usage

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: ['first', 'second', 'third']

About

An Ansible role that sets up prodrigestivill/docker-postgres-backup-local to run as a Docker container wrapped in a systemd service

Resources

Stars

Watchers

Forks

Packages

No packages published