Skip to content
Snippets Groups Projects
Unverified Commit 47849b8f authored by Etienne Champetier's avatar Etienne Champetier Committed by GitHub
Browse files

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


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

Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
parent 0379a52f
Branches
Tags
No related merge requests found
...@@ -102,14 +102,9 @@ ...@@ -102,14 +102,9 @@
when: ansible_distribution == "Fedora" and not is_ostree when: ansible_distribution == "Fedora" and not is_ostree
- name: Configure docker repository on RedHat/CentOS/Oracle Linux - name: Configure docker repository on RedHat/CentOS/Oracle Linux
yum_repository: template:
name: docker-ce src: "rh_docker.repo.j2"
baseurl: "{{ docker_rh_repo_base_url }}" dest: "{{ yum_repo_dir }}/docker-ce.repo"
description: "Docker CE Stable - $basearch"
gpgcheck: yes
gpgkey: "{{ docker_rh_repo_gpgkey }}"
keepcache: "{{ docker_rpm_keepcache | default('1') }}"
proxy: " {{ http_proxy | default('_none_') }}"
when: ansible_distribution in ["CentOS","RedHat","OracleLinux"] and not is_ostree when: ansible_distribution in ["CentOS","RedHat","OracleLinux"] and not is_ostree
- name: check if container-selinux is available - name: check if container-selinux is available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment