zuul-jobs/roles/configure-mirrors/tasks/mirror/CentOS-7.yaml
Albin Vass 9062289151 Check for loop_control in with_ type loops
Change-Id: I191265df7709a6262b44a428d78fe28ffaeb4b75
2020-05-01 13:45:34 +02:00

28 lines
720 B
YAML

- name: Install CentOS repository files
become: yes
template:
dest: "/{{ zj_repo }}"
group: root
mode: 0644
owner: root
src: "centos7/{{ zj_repo }}.j2"
with_items:
- etc/yum.repos.d/CentOS-Base.repo
- etc/yum.repos.d/epel.repo
loop_control:
loop_var: zj_repo
notify:
- Update yum/dnf 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