Browse Source

docker: Fix docker install on CentOS/RHEL 8 (#5820)

we can't set module_hotfixes=True using yum_repository ansible module
Fixes 38688a4486
(keep docker-ce.repo name)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
pull/5823/head
Etienne Champetier 4 years ago
committed by GitHub
parent
commit
47849b8ff7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions
  1. 11
      roles/container-engine/docker/tasks/main.yml
  2. 0
      roles/container-engine/docker/templates/rh_docker.repo.j2

11
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

roles/container-engine/containerd/templates/rh_docker.repo.j2 → roles/container-engine/docker/templates/rh_docker.repo.j2

Loading…
Cancel
Save