mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-21 10:57:41 -02:30
add posibility to provide different yum repository directory (#2787)
This commit is contained in:
committed by
Matthew Mosesohn
parent
4ac79993e2
commit
eba486f229
@@ -23,6 +23,7 @@ docker_container_storage_setup: false
|
|||||||
|
|
||||||
# Used to override obsoletes=0
|
# Used to override obsoletes=0
|
||||||
yum_conf: /etc/yum.conf
|
yum_conf: /etc/yum.conf
|
||||||
|
yum_repo_dir: /etc/yum.repos.d
|
||||||
docker_yum_conf: /etc/yum_docker.conf
|
docker_yum_conf: /etc/yum_docker.conf
|
||||||
|
|
||||||
# CentOS/RedHat docker-ce repo
|
# CentOS/RedHat docker-ce repo
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
- name: Configure docker repository on RedHat/CentOS
|
- name: Configure docker repository on RedHat/CentOS
|
||||||
template:
|
template:
|
||||||
src: "rh_docker.repo.j2"
|
src: "rh_docker.repo.j2"
|
||||||
dest: "/etc/yum.repos.d/docker.repo"
|
dest: "{{ yum_repo_dir }}/docker.repo"
|
||||||
when: ansible_distribution in ["CentOS","RedHat"] and not is_atomic
|
when: ansible_distribution in ["CentOS","RedHat"] and not is_atomic
|
||||||
|
|
||||||
- name: Copy yum.conf for editing
|
- name: Copy yum.conf for editing
|
||||||
|
|||||||
Reference in New Issue
Block a user