Add retries to docker_image_facts
If there are connectivity issues with docker_image_facts we should retry it rather than just failing. Change-Id: If982fbc8f2524e4e36688cd700a7ea2f0f48c549 Closes-Bug: #1796756
This commit is contained in:
parent
1539073000
commit
48a56c1f48
|
@ -3,6 +3,9 @@
|
||||||
- name: Inspect image with Docker
|
- name: Inspect image with Docker
|
||||||
docker_image_facts:
|
docker_image_facts:
|
||||||
name: "{{ source_image }}"
|
name: "{{ source_image }}"
|
||||||
|
retries: 5
|
||||||
|
delay: 5
|
||||||
|
until: source_image_facts.images is defined
|
||||||
register: source_image_facts
|
register: source_image_facts
|
||||||
- name: Set original_user with Docker
|
- name: Set original_user with Docker
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in New Issue