parent
6be0f6bb32
commit
d05125afc1
7 changed files with 40 additions and 15 deletions
@ -1,3 +1,5 @@ |
||||
--- |
||||
dependencies: |
||||
- role: repo_wapt |
||||
- role: postgresql_server |
||||
when: wapt_db_server in ['localhost','127.0.0.1'] |
||||
|
@ -1,3 +1,3 @@ |
||||
#!/bin/sh |
||||
|
||||
rm -f /opt/wapt/db_dumps/* |
||||
rm -f /opt/wapt/backup/* |
||||
|
@ -1,8 +1,8 @@ |
||||
#!/bin/sh |
||||
|
||||
PGPASSWORD='{{ wapt_db_pass }}' /usr/pgsql-11/bin/pg_dump \ |
||||
PGPASSWORD={{ wapt_db_pass | quote }} /usr/pgsql-13/bin/pg_dump \ |
||||
--clean \ |
||||
--create \ |
||||
--username={{ wapt_db_user }} \ |
||||
--host={{ wapt_db_server }} \ |
||||
{{ wapt_db_name }} | lz4 -c > /opt/wapt/db_dumps/{{ wapt_db_name }}.sql.lz4 |
||||
--username={{ wapt_db_user | quote }} \ |
||||
--host={{ wapt_db_server | quote }} \ |
||||
{{ wapt_db_name | quote }} | zstd -c > /opt/wapt/backup/{{ wapt_db_name }}.sql.zst |
||||
|
@ -0,0 +1,7 @@ |
||||
--- |
||||
|
||||
wapt_packages: |
||||
- tis-waptserver |
||||
- tis-waptsetup |
||||
- postgresql13 |
||||
- python-psycopg2 # Needed to manage PG with ansible |
@ -0,0 +1,7 @@ |
||||
--- |
||||
|
||||
wapt_packages: |
||||
- tis-waptserver |
||||
# - tis-waptsetup |
||||
- postgresql13 |
||||
- python3-psycopg2 # Needed to manage PG with ansible |
Loading…
Reference in new issue