1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

retry cleanup of build artifacts for bwrap race condition

This commit is contained in:
AlanCoding 2017-10-26 12:06:10 -04:00
parent 1ea3d55167
commit 48ec69c4f5
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

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