From bae36b82759ff2ba0ea0db81cedc80af73c44d87 Mon Sep 17 00:00:00 2001 From: John Hensley Date: Mon, 8 Apr 2019 16:01:56 -0400 Subject: [PATCH] Backup: fetch tarball with synchronize instead of fetch Ansible's fetch module causes MemoryError with large files when run with 'become': https://docs.ansible.com/ansible/latest/modules/fetch_module.html#notes It was easily replaced with the synchronize module: https://docs.ansible.com/ansible/latest/modules/synchronize_module.html --- install_files/ansible-base/roles/backup/tasks/backup.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_files/ansible-base/roles/backup/tasks/backup.yml b/install_files/ansible-base/roles/backup/tasks/backup.yml index aed8ca9915..f68a98500b 100644 --- a/install_files/ansible-base/roles/backup/tasks/backup.yml +++ b/install_files/ansible-base/roles/backup/tasks/backup.yml @@ -22,11 +22,11 @@ backup_filename: "{{ backup_script_result.stdout }}" - name: Fetch the backup tarball back to the Admin Workstation. - fetch: + synchronize: + checksum: yes + mode: pull src: /tmp/{{ backup_filename }} dest: ./{{ backup_filename }} - flat: yes - fail_on_missing: yes - name: Delete backup tarball from Application Server (to save disk space). file: