Explorar o código

container-engine: move registry_auth.yml before pull

so that the atomic pull takes into account the credentials if
required.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano %!s(int64=7) %!d(string=hai) anos
pai
achega
065584c1d0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      roles/container_runtime/tasks/systemcontainer_docker.yml

+ 6 - 0
roles/container_runtime/tasks/systemcontainer_docker.yml

@@ -42,6 +42,12 @@
 - debug:
     var: l_docker_image
 
+# Do the authentication before pulling the container engine system container
+# as the pull might be from an authenticated registry.
+- include_tasks: registry_auth.yml
+  vars:
+    openshift_docker_alternative_creds: True
+
 # NOTE: no_proxy added as a workaround until https://github.com/projectatomic/atomic/pull/999 is released
 - name: Pre-pull Container Engine System Container image
   command: "atomic pull --storage ostree {{ l_docker_image }}"