diff options
| author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-20 22:23:43 -0500 | 
|---|---|---|
| committer | Scott Dodson <sdodson@redhat.com> | 2015-12-15 15:45:45 -0500 | 
| commit | d3edce9c192c8d1eba572ba45ca25c06d0fbb830 (patch) | |
| tree | 267da79402a804e6ce3997c1fe2d5286c1de1c37 /roles/openshift_master_ca | |
| parent | 043d6b3a7e3c6b799ddf4157ccdf2b2b67451d81 (diff) | |
| download | openshift-d3edce9c192c8d1eba572ba45ca25c06d0fbb830.tar.gz openshift-d3edce9c192c8d1eba572ba45ca25c06d0fbb830.tar.bz2 openshift-d3edce9c192c8d1eba572ba45ca25c06d0fbb830.tar.xz openshift-d3edce9c192c8d1eba572ba45ca25c06d0fbb830.zip | |
pull docker images only if not already present
Diffstat (limited to 'roles/openshift_master_ca')
| -rw-r--r-- | roles/openshift_master_ca/tasks/main.yml | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/roles/openshift_master_ca/tasks/main.yml b/roles/openshift_master_ca/tasks/main.yml index 17d832d26..3114c2464 100644 --- a/roles/openshift_master_ca/tasks/main.yml +++ b/roles/openshift_master_ca/tasks/main.yml @@ -12,10 +12,16 @@      path: "{{ openshift_master_config_dir }}"      state: directory +- name: Get docker images +  command: docker images +  changed_when: false +  when: openshift.common.is_containerized | bool +  register: docker_images +  - name: Pull required docker image    command: >      docker pull {{ openshift.common.cli_image }} -  when: openshift.common.is_containerized | bool +  when: openshift.common.is_containerized | bool and openshift.common.cli_image not in docker_images.stdout  - name: Create the master certificates if they do not already exist    command: > | 
