add posibility to provide different yum repository directory (#2787)

This commit is contained in:
Aivars Sterns 2018-05-16 13:56:04 +03:00 committed by Matthew Mosesohn
parent 4ac79993e2
commit eba486f229
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@ docker_container_storage_setup: false
# Used to override obsoletes=0
yum_conf: /etc/yum.conf
yum_repo_dir: /etc/yum.repos.d
docker_yum_conf: /etc/yum_docker.conf
# CentOS/RedHat docker-ce repo

View file

@ -85,7 +85,7 @@
- name: Configure docker repository on RedHat/CentOS
template:
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
- name: Copy yum.conf for editing