Allow rsync retries

This commit is contained in:
Tobias Manske 2023-08-21 15:49:40 +02:00
parent ac11f3e4f3
commit 0a9d3e65fe
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,8 @@
- name: Copy Compose files - name: Copy Compose files
become: false become: false
retries: 2
until: 'compose_files.rc == 0'
ansible.posix.synchronize: ansible.posix.synchronize:
src: "{{ service_base }}/{{ service | mandatory }}/" src: "{{ service_base }}/{{ service | mandatory }}/"
dest: "{{ service_dir | mandatory }}" dest: "{{ service_dir | mandatory }}"

View File

@ -43,6 +43,8 @@
- name: Copy Compose files - name: Copy Compose files
become: false become: false
retries: 2
until: 'compose_files.rc == 0'
ansible.posix.synchronize: ansible.posix.synchronize:
src: "{{ temp_file.path | mandatory }}/" src: "{{ temp_file.path | mandatory }}/"
dest: "{{ service_dir | mandatory }}" dest: "{{ service_dir | mandatory }}"