|
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
|
|
# there is no ansible gpg module already in place
|
|
|
|
|
# linting violation needs to be whitelisted
|
|
|
|
|
- name: "Importing stage specific automation gpg-key" # noqa command-instead-of-shell
|
|
|
|
|
- name: "Importing stage specific automation gpg-key" # noqa command-instead-of-shell no-changed-when
|
|
|
|
|
shell: "gpg --import {{ tempdir.path }}/{{ backup_communication_keys_stage_gpg_key }}"
|
|
|
|
|
|
|
|
|
|
- name: "Block: Creating pg_basebackup"
|
|
|
|
|
@ -63,6 +63,7 @@
|
|
|
|
|
copy:
|
|
|
|
|
content: "{{ backup_result }}"
|
|
|
|
|
dest: "{{ backup_status_file }}"
|
|
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
|
|
- name: "Change ownership of {{ backup_dest_dir }} to {{ backupuser_user_name }}:{{ backupuser_user_name }}"
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
@ -75,6 +76,7 @@
|
|
|
|
|
copy:
|
|
|
|
|
content: "{{ backup_result }}"
|
|
|
|
|
dest: "{{ backup_status_file }}_with_failures"
|
|
|
|
|
mode: "0644"
|
|
|
|
|
when: backup_result.failed
|
|
|
|
|
|
|
|
|
|
- name: "Rescue: Delete {{ backup_file }} on failure"
|
|
|
|
|
|