snackpot.yml - adapt from server.playbook.yml
This commit is contained in:
@@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
- name: social.coop | server
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
vars_files:
|
|
||||||
- secrets.vars.yml
|
|
||||||
vars:
|
|
||||||
s3_access_key_id: "{{lookup('passwordstore', 'deployment/backupninja/s3access')}}"
|
|
||||||
s3_secret_access_key: "{{lookup('passwordstore', 'deployment/backupninja/s3sec')}}"
|
|
||||||
roles:
|
|
||||||
- role: server
|
|
||||||
- role: social-coop
|
|
||||||
|
|
||||||
- role: logcheck-custom
|
|
||||||
tags: logcheck-custom
|
|
||||||
|
|
||||||
# Installs a script to dump the mastodon-live PgSQL database, and
|
|
||||||
# copy the GPG encrypted archive to our S3 space with rclone. This
|
|
||||||
# is invoked daily using a systemd timer. Encryption is done with
|
|
||||||
# the public key in the password store
|
|
||||||
# deployment/backupninja/pub. To decrypt, you need to use the
|
|
||||||
# associated private key
|
|
||||||
- role: pg-dump-to-s3
|
|
||||||
tags: pg-dump-to-s3
|
|
||||||
pg_dump_to_s3_systemd_timer_section: OnCalendar=00:40:00
|
|
||||||
pg_dump_to_s3_desturl: "spaces:social-coop-media/backups/{{inventory_hostname_short}}/"
|
|
||||||
pg_dump_to_s3_pgdump_opts: -h localhost -U root -d mastodon-live -Fc
|
|
||||||
pg_dump_to_s3_pubkey: "{{lookup('passwordstore', 'deployment/backupninja/pub returnall=true')}}"
|
|
||||||
pg_dump_to_s3_rclone_config: "{{lookup('template', 'templates/rclone-conf.j2')}}"
|
|
||||||
|
|
||||||
10
snackpot.yml
Normal file
10
snackpot.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- name: snackpot | server
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- include_role:
|
||||||
|
name: docker_compose
|
||||||
|
apply: { tags: docker_compose }
|
||||||
|
tags: docker_compose
|
||||||
|
vars:
|
||||||
|
docker_compose_version: 1.27.4
|
||||||
Reference in New Issue
Block a user