Commits on Source (2)
-
Evangelos Foutras authored
Due to the "systemctl is-active foo && backup-foo || true" shorthand, errors during database dumping were being ignored. Change the MariaDB section to also be wrapped in a proper if statement. Finally, get rid of "|| true" silencing statements + enable errexit in helper scripts.
-
Evangelos Foutras authored
Move backup-related variable defaults from the database roles into the borg_client role. Also check group membership to guard installation of database backup helper scripts.
Showing
- docs/backups.md 4 additions, 3 deletionsdocs/backups.md
- roles/borg_client/defaults/main.yml 4 additions, 0 deletionsroles/borg_client/defaults/main.yml
- roles/borg_client/tasks/main.yml 20 additions, 25 deletionsroles/borg_client/tasks/main.yml
- roles/borg_client/templates/backup-mysql.sh.j2 4 additions, 2 deletionsroles/borg_client/templates/backup-mysql.sh.j2
- roles/borg_client/templates/backup-postgres.sh.j2 6 additions, 5 deletionsroles/borg_client/templates/backup-postgres.sh.j2
- roles/borg_client/templates/borg-backup.sh.j2 5 additions, 3 deletionsroles/borg_client/templates/borg-backup.sh.j2
- roles/mariadb/defaults/main.yml 0 additions, 3 deletionsroles/mariadb/defaults/main.yml
- roles/postgres/defaults/main.yml 0 additions, 2 deletionsroles/postgres/defaults/main.yml