Add a role to installe/configure the infra tag repos
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
f243f97b9d
commit
88d1f0bb5a
3 changed files with 28 additions and 0 deletions
6
ansible/roles/infra_repo/files/fedora-infra-tags.repo
Normal file
6
ansible/roles/infra_repo/files/fedora-infra-tags.repo
Normal 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
|
6
ansible/roles/infra_repo/files/rhel-infra-tags.repo
Normal file
6
ansible/roles/infra_repo/files/rhel-infra-tags.repo
Normal 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
|
16
ansible/roles/infra_repo/tasks/main.yml
Normal file
16
ansible/roles/infra_repo/tasks/main.yml
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue