diff options
author | Scott Dodson <sdodson@redhat.com> | 2015-12-16 14:14:42 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2015-12-16 14:14:42 -0500 |
commit | 48778f29f265380a3e6fa2e882621ebc3781736b (patch) | |
tree | 72f5ff520cd5d5bc3594ece643b77bcde7a712f9 /roles/openshift_master | |
parent | 5e2e55e4aa09468a054ce7c9901c51d9563cc85a (diff) | |
download | openshift-48778f29f265380a3e6fa2e882621ebc3781736b.tar.gz openshift-48778f29f265380a3e6fa2e882621ebc3781736b.tar.bz2 openshift-48778f29f265380a3e6fa2e882621ebc3781736b.tar.xz openshift-48778f29f265380a3e6fa2e882621ebc3781736b.zip |
Add some guards to wait for images to be pulled before moving on
Diffstat (limited to 'roles/openshift_master')
-rw-r--r-- | roles/openshift_master/tasks/main.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml index 405183186..9caf15f9e 100644 --- a/roles/openshift_master/tasks/main.yml +++ b/roles/openshift_master/tasks/main.yml @@ -91,10 +91,20 @@ when: openshift.common.is_containerized | bool register: docker_images -- name: Pull required docker image +- name: Pull master image command: > docker pull {{ openshift.master.master_image }} when: openshift.common.is_containerized | bool and openshift.master.master_image not in docker_images.stdout + +- name: Wait for master image + command: > + docker images + register: docker_images + until: openshift.master.master_image in docker_images.stdout + retries: 30 + delay: 10 + changed_when: false + when: openshift.common.is_containerized | bool - name: Install Master docker service file template: |