From d34638c07db44b7a7fc4eae50df4b6e0f7ed9adb Mon Sep 17 00:00:00 2001 From: Jack Lloyd-Walters Date: Tue, 29 Aug 2023 15:44:01 +0100 Subject: [PATCH] split command over line --- roles/common/tasks/backup.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/common/tasks/backup.yaml b/roles/common/tasks/backup.yaml index f1156ef..fb56beb 100644 --- a/roles/common/tasks/backup.yaml +++ b/roles/common/tasks/backup.yaml @@ -56,7 +56,10 @@ # ansible.builtin.fetch has the ability to be oom killed on large files, so we're using scp instead - name: Download Backup - ansible.builtin.command: scp -o StrictHostKeyChecking=no {{ ansible_user }}@{{ inventory_hostname }}:{{ maas_backup_dest_path }} {{ maas_backup_download_path }}{{ maas_backup_file }} + ansible.builtin.command: > + scp -o StrictHostKeyChecking=no \ + {{ ansible_user }}@{{ inventory_hostname }}:{{ maas_backup_dest_path }} \ + {{ maas_backup_download_path }}{{ maas_backup_file }} delegate_to: localhost become: false # don't need sudo locally changed_when: false