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
parent
0379a52f03
commit
47849b8ff7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue