Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Sep 14, 2019
1 parent c71121f commit 3758af1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions menu/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,11 @@
# rsync fails please try again

# when: "'FAILED' in command_result.stderr"
- name: rSync docker-root dir to new path it prints FAILED when it fails
- name: "docker-root dir to new path it prints FAILED when it fails"
synchronize:
src: /var/lib/docker/
dest: /opt/docker
recursive: yes
register: synchronize_result

- name: fail the play if the previous command did not succeed
fail:
msg: |

rsync fails please try again

when: "'FAILED' in synchronize_result.stderr

- name: 'Wait for 20 seconds before commencing'
wait_for:
Expand Down

0 comments on commit 3758af1

Please sign in to comment.