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:
Alex Schultz 2018-10-09 16:48:28 -06:00
parent 1539073000
commit 48a56c1f48
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
- name: Inspect image with Docker
docker_image_facts:
name: "{{ source_image }}"
retries: 5
delay: 5
until: source_image_facts.images is defined
register: source_image_facts
- name: Set original_user with Docker
set_fact: