From 0a9d3e65fe74761f3b07dd78b6f6f0b5e20d6acb Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Mon, 21 Aug 2023 15:49:40 +0200 Subject: [PATCH] Allow rsync retries --- tasks/present_cp.yml | 2 ++ tasks/present_template.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tasks/present_cp.yml b/tasks/present_cp.yml index 4ff4d8a..fa4ad69 100644 --- a/tasks/present_cp.yml +++ b/tasks/present_cp.yml @@ -6,6 +6,8 @@ - name: Copy Compose files become: false + retries: 2 + until: 'compose_files.rc == 0' ansible.posix.synchronize: src: "{{ service_base }}/{{ service | mandatory }}/" dest: "{{ service_dir | mandatory }}" diff --git a/tasks/present_template.yml b/tasks/present_template.yml index eca6524..5f368ec 100644 --- a/tasks/present_template.yml +++ b/tasks/present_template.yml @@ -43,6 +43,8 @@ - name: Copy Compose files become: false + retries: 2 + until: 'compose_files.rc == 0' ansible.posix.synchronize: src: "{{ temp_file.path | mandatory }}/" dest: "{{ service_dir | mandatory }}"