mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
retry cleanup of build artifacts for bwrap race condition
This commit is contained in:
@@ -16,4 +16,14 @@
|
|||||||
|
|
||||||
- name: remove build artifacts
|
- name: remove build artifacts
|
||||||
file: path="{{item}}" state=absent
|
file: path="{{item}}" state=absent
|
||||||
|
register: result
|
||||||
with_items: "{{cleanup_dirs}}"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user