Browse Source

docker: Move enterprise registry from pkg to main

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1503860

Signed-off-by: Steve Milner <smilner@redhat.com>
Steve Milner 7 years ago
parent
commit
2e5d7a6a84
2 changed files with 9 additions and 8 deletions
  1. 9 0
      roles/docker/tasks/main.yml
  2. 0 8
      roles/docker/tasks/package_docker.yml

+ 9 - 0
roles/docker/tasks/main.yml

@@ -10,6 +10,15 @@
     l_use_crio: "{{ openshift_use_crio | default(False) }}"
     l_use_crio_only: "{{ openshift_use_crio_only | default(False) }}"
 
+- name: Add enterprise registry, if necessary
+  set_fact:
+    l2_docker_additional_registries: "{{ l2_docker_additional_registries + [openshift_docker_ent_reg] }}"
+  when:
+    - openshift.common.deployment_type == 'openshift-enterprise'
+    - openshift_docker_ent_reg != ''
+    - openshift_docker_ent_reg not in l2_docker_additional_registries
+    - not l_use_crio_only
+
 - name: Use Package Docker if Requested
   include: package_docker.yml
   when:

+ 0 - 8
roles/docker/tasks/package_docker.yml

@@ -52,14 +52,6 @@
     - restart docker
   when: not (os_firewall_use_firewalld | default(False)) | bool
 
-- name: Add enterprise registry, if necessary
-  set_fact:
-    l2_docker_additional_registries: "{{ l2_docker_additional_registries + [openshift_docker_ent_reg] }}"
-  when:
-  - openshift.common.deployment_type == 'openshift-enterprise'
-  - openshift_docker_ent_reg != ''
-  - openshift_docker_ent_reg not in l2_docker_additional_registries
-
 - stat: path=/etc/sysconfig/docker
   register: docker_check