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.
 
 
 
 
 
 

27 lines
758 B

---
- name: Configure base repositories
yum_repository:
file: CentOS-Base
description: "Centos - {{ item.repo }}"
name: "{{ item.repo }}"
baseurl: http://mirror.centos.org/centos/$releasever/{{ item.dir }}/$basearch/
gpgcheck: True
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude: 'lasso*'
with_items:
- repo: base
dir: os
- repo: updates
dir: updates
- repo: extras
dir: extras
- name: Configure centosplus
yum_repository:
file: CentOS-Base
description: "Centos - centosplus"
name: centosplus
baseurl: http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck: True
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled: False