Compare commits
No commits in common. "2c3048d5107e5fac7f4e52a6678287e04cb014fa" and "8fe65b52db4c4a28a44c592ee4532f5fb6ce50ec" have entirely different histories.
2c3048d510
...
8fe65b52db
5 changed files with 1 additions and 38 deletions
|
@ -1,4 +0,0 @@
|
||||||
- hosts: webservers
|
|
||||||
roles:
|
|
||||||
- name: backups
|
|
||||||
postgres_password: "{{ postgresql_users.postgres }}"
|
|
|
@ -1,6 +0,0 @@
|
||||||
argument_specs:
|
|
||||||
main:
|
|
||||||
options:
|
|
||||||
postgres_password:
|
|
||||||
type: str
|
|
||||||
required: true
|
|
|
@ -1,26 +0,0 @@
|
||||||
- name: Copy pgpass file
|
|
||||||
become: true
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: pgpass.j2
|
|
||||||
dest: /root/.pgpass
|
|
||||||
mode: "0600"
|
|
||||||
owner: root
|
|
||||||
- name: Create postgresql backups volume
|
|
||||||
become: true
|
|
||||||
community.docker.docker_volume:
|
|
||||||
name: postgresql-backups
|
|
||||||
- name: Run postgresql backuper
|
|
||||||
become: true
|
|
||||||
community.docker.docker_container:
|
|
||||||
name: postgresql-backuper-1
|
|
||||||
image: git.comfycamp.space/lumin/postgresql-backuper:v0.0.3
|
|
||||||
volumes:
|
|
||||||
- postgresql-backups:/backups
|
|
||||||
- /root/.pgpass:/root/.pgpass:ro
|
|
||||||
env:
|
|
||||||
CUSTOM_ARGS: "-U postgres -h postgresql --no-password"
|
|
||||||
BACKUPS_DIR: /backups
|
|
||||||
BACKUP_INTERVAL: 24h
|
|
||||||
networks:
|
|
||||||
- name: postgresql
|
|
||||||
restart_policy: unless-stopped
|
|
|
@ -1 +0,0 @@
|
||||||
postgresql:5432:*:postgres:{{ postgres_password }}
|
|
|
@ -20,7 +20,7 @@
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: comfycamp
|
name: comfycamp
|
||||||
image: git.comfycamp.space/lumin/comfycamp:v2.3.1
|
image: git.comfycamp.space/lumin/comfycamp:v2.3.0
|
||||||
networks:
|
networks:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
- name: haproxy
|
- name: haproxy
|
||||||
|
|
Loading…
Reference in a new issue