summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2016-09-25 17:08:37 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2016-09-25 17:08:41 +0000
commit3f8062e776d98853cbe20cbcbaf01a46c67f098c (patch)
tree88fd01a133f1dd273ea59820d13ea3c56b2e4fbd
parentad8448b144580a0efe9358f170d43a9a2502dfe2 (diff)
downloadansible-3f8062e776d98853cbe20cbcbaf01a46c67f098c.tar.gz
ansible-3f8062e776d98853cbe20cbcbaf01a46c67f098c.tar.xz
ansible-3f8062e776d98853cbe20cbcbaf01a46c67f098c.zip
Add infra tag repos
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rw-r--r--files/common/fedora-infra-tags.repo6
-rw-r--r--files/common/rhel-infra-tags.repo6
-rw-r--r--tasks/yumrepos.yml16
3 files changed, 28 insertions, 0 deletions
diff --git a/files/common/fedora-infra-tags.repo b/files/common/fedora-infra-tags.repo
new file mode 100644
index 000000000..2f5d4cc26
--- /dev/null
+++ b/files/common/fedora-infra-tags.repo
@@ -0,0 +1,6 @@
+[infrastructure-tags]
+name=Fedora Infrastructure tag $releasever - $basearch
+baseurl=http://infrastructure.fedoraproject.org/repo/infra/f$releasever-infra/$basearch/
+enabled=1
+gpgcheck=1
+gpgkey=http://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS
diff --git a/files/common/rhel-infra-tags.repo b/files/common/rhel-infra-tags.repo
new file mode 100644
index 000000000..1d563c495
--- /dev/null
+++ b/files/common/rhel-infra-tags.repo
@@ -0,0 +1,6 @@
+[infrastructure-tags]
+name=Fedora Infrastructure tag $releasever - $basearch
+baseurl=http://infrastructure.fedoraproject.org/repo/infra/epel$releasever-infra/$basearch/
+enabled=1
+gpgcheck=1
+gpgkey=http://infrastructure.fedoraproject.org/repo/RPM-GPG-KEY-INFRASTRUCTURE
diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml
index 174cc98cf..772e44d0f 100644
--- a/tasks/yumrepos.yml
+++ b/tasks/yumrepos.yml
@@ -56,3 +56,19 @@
- config
- packages
- yumrepos
+
+- name: add infrastructure tags repo - RHEL
+ copy: src="{{ files }}/common/rhel-infra-tags.repo" dest="/etc/yum.repos.d/{{ item }}"
+ when: ansible_distribution == 'RedHat'
+ tags:
+ - config
+ - packages
+ - yumrepos
+
+- name: add infrastructure tags repo - Fedora
+ copy: src="{{ files }}/common/fedora-infra-tags.repo" dest="/etc/yum.repos.d/{{ item }}"
+ when: ansible_distribution == 'Fedora'
+ tags:
+ - config
+ - packages
+ - yumrepos