diff --git a/ansible/roles/infra_repo/files/fedora-infra-tags.repo b/ansible/roles/infra_repo/files/fedora-infra-tags.repo new file mode 100644 index 0000000..c7c6b8b --- /dev/null +++ b/ansible/roles/infra_repo/files/fedora-infra-tags.repo @@ -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 diff --git a/ansible/roles/infra_repo/files/rhel-infra-tags.repo b/ansible/roles/infra_repo/files/rhel-infra-tags.repo new file mode 100644 index 0000000..349a615 --- /dev/null +++ b/ansible/roles/infra_repo/files/rhel-infra-tags.repo @@ -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 diff --git a/ansible/roles/infra_repo/tasks/main.yml b/ansible/roles/infra_repo/tasks/main.yml new file mode 100644 index 0000000..716f3e1 --- /dev/null +++ b/ansible/roles/infra_repo/tasks/main.yml @@ -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 +