Revert "Async clone for git roles"
This reverts commit 7a1e46b2c5
.
Tasks executed asynchronously do not implement retries
like normal tasks do. As the role clones are failing quite
often due to TLS failures we need the retries.
Change-Id: Iac4167a63387f645e91d4529218c9d2de87ea5a7
This commit is contained in:
parent
b8dfac4f68
commit
4338a648d3
@ -73,21 +73,9 @@
|
||||
map(attribute='item') | list)
|
||||
| default(required_roles, True) }}"
|
||||
register: git_clone
|
||||
until: git_clone | success
|
||||
retries: "{{ git_clone_retries }}"
|
||||
delay: "{{ git_clone_retry_delay }}"
|
||||
async: 1800
|
||||
poll: 0
|
||||
|
||||
- name: Wait for git clones to complete
|
||||
async_status:
|
||||
jid: "{{ item['ansible_job_id'] }}"
|
||||
register: _git_jobs
|
||||
until: _git_jobs['finished'] | bool
|
||||
delay: 5
|
||||
retries: 360
|
||||
with_items: "{{ git_clone['results'] }}"
|
||||
when:
|
||||
- item['ansible_job_id'] is defined
|
||||
|
||||
vars:
|
||||
ansible_python_interpreter: "/usr/bin/python"
|
||||
|
Loading…
Reference in New Issue
Block a user