2462d16322
This keeps each platform's "/etc" template files in a separate top-level directory. Additionally, we add a distro major version match to the task import and rename centos7 (in preparation for centos8). Change-Id: If65d51a27e30311b1da20522afb6dbce7ee6cf35
26 lines
672 B
YAML
26 lines
672 B
YAML
- name: Install CentOS repository files
|
|
become: yes
|
|
template:
|
|
dest: "/{{ item }}"
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: "centos7/{{ item }}.j2"
|
|
with_items:
|
|
- etc/yum.repos.d/CentOS-Base.repo
|
|
- etc/yum.repos.d/epel.repo
|
|
notify:
|
|
- Update yum cache
|
|
|
|
# http://dnf.readthedocs.io/en/latest/conf_ref.html#options-for-both-main-and-repo
|
|
# deltarpm is useful when the bottleneck is the network throughput.
|
|
# It also requires additional drpm packages to be hosted by the mirrors which
|
|
# is not done by default.
|
|
- name: Disable deltrarpm
|
|
become: yes
|
|
ini_file:
|
|
path: /etc/yum.conf
|
|
section: main
|
|
option: deltarpm
|
|
value: 0
|