Merge pull request #552 from AlanCoding/retry_cleanup

[3.2.2] retry cleanup of build artifacts for bwrap race condition
This commit is contained in:
Alan Rominger 2017-10-27 08:23:28 -04:00 committed by GitHub
commit c323a2393a

View File

@ -16,4 +16,14 @@
- name: remove build artifacts
file: path="{{item}}" state=absent
register: result
with_items: "{{cleanup_dirs}}"
until: result|succeeded
ignore_errors: yes
retries: 3
delay: 5
- name: fail if build artifacts were not cleaned
fail:
msg: 'Unable to cleanup build artifacts'
when: not result|succeeded