diff --git a/roles/container-engine/docker/tasks/main.yml b/roles/container-engine/docker/tasks/main.yml index 4366af06a..b942fea67 100644 --- a/roles/container-engine/docker/tasks/main.yml +++ b/roles/container-engine/docker/tasks/main.yml @@ -102,14 +102,9 @@ when: ansible_distribution == "Fedora" and not is_ostree - name: Configure docker repository on RedHat/CentOS/Oracle Linux - yum_repository: - name: docker-ce - baseurl: "{{ docker_rh_repo_base_url }}" - description: "Docker CE Stable - $basearch" - gpgcheck: yes - gpgkey: "{{ docker_rh_repo_gpgkey }}" - keepcache: "{{ docker_rpm_keepcache | default('1') }}" - proxy: " {{ http_proxy | default('_none_') }}" + template: + src: "rh_docker.repo.j2" + dest: "{{ yum_repo_dir }}/docker-ce.repo" when: ansible_distribution in ["CentOS","RedHat","OracleLinux"] and not is_ostree - name: check if container-selinux is available diff --git a/roles/container-engine/containerd/templates/rh_docker.repo.j2 b/roles/container-engine/docker/templates/rh_docker.repo.j2 similarity index 100% rename from roles/container-engine/containerd/templates/rh_docker.repo.j2 rename to roles/container-engine/docker/templates/rh_docker.repo.j2