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