NOTICKET: Fix lint errors and warnigns

main
MIchael Haehnel 2 years ago
parent 31ad29b087
commit 55f44ba845
No known key found for this signature in database
GPG Key ID: D2FA233B52AEC75C

@ -35,7 +35,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 }}'
become: yes

@ -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"

Loading…
Cancel
Save