Add a role to installe/configure the infra tag repos

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-01-20 09:20:23 +01:00
parent f243f97b9d
commit 88d1f0bb5a
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[infrastructure-tags]
name=Fedora Infrastructure tag $releasever - $basearch
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/f$releasever-infra/latest/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS

View file

@ -0,0 +1,6 @@
[infrastructure-tags]
name=Fedora Infrastructure tag $releasever - $basearch
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel$releasever-infra/latest/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS

View file

@ -0,0 +1,16 @@
- name: add infrastructure tags repo - Fedora
copy: src="files/common/fedora-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
when: ansible_distribution == 'Fedora'
tags:
- config
- packages
- yumrepos
- name: add infrastructure tags repo - RHEL
copy: src="files/common/rhel-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
tags:
- config
- packages
- yumrepos