Async clone for git roles
Change-Id: Ieb4608ac86c49c9eed3b62471b67493e41a087f4
This commit is contained in:
parent
67bea88f60
commit
7a1e46b2c5
@ -72,9 +72,21 @@
|
||||
map(attribute='item') | list)
|
||||
| default(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…
x
Reference in New Issue
Block a user