Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
866 B

---
- name: Configure base repositories
yum_repository:
file: CentOS-{{ item.repo }}
description: "Centos - {{ item.repo }}"
name: "{{ item.repo }}"
baseurl: http://mirror.centos.org/$contentdir/$releasever/{{ item.repo }}/$basearch/os/
gpgcheck: True
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled: "{{ item.enabled | default(True) }}"
loop:
- repo: BaseOS
- repo: AppStream
- repo: PowerTools
- repo: extras
- repo: cr
enabled: False
- repo: centosplus
enabled: False
- repo: fasttrack
enabled: False
tags: repo
- name: Remove Base file
file: path=/etc/yum.repos.d/{{ item }}.repo state=absent
loop:
- CentOS-Base # Replaced with CentOS-BaseOS
- CentOS-CR # Replaced with CentOS-cr
- CentOS-Extras # Replaced with CentOS-extras
tags: repo