added secrets logic, fixed permissions issues

This commit is contained in:
Christian M. Adams
2021-04-08 10:01:17 -04:00
parent b9d0852c83
commit ce8c58f542
12 changed files with 123 additions and 63 deletions

View File

@@ -69,7 +69,7 @@
namespace: "{{ tower_backup_pvc_namespace }}"
pod: "{{ meta.name }}-db-management"
command: >-
chmod 0600 {{ backup_dir }}/tower.db
chmod 0600 {{ backup_dir }}/tower.db && chown postgres:root {{ backup_dir }}/tower.db
- name: Set pg_dump command
set_fact: