commit f41347ce2e7e32afb8fa52ee74606d0892c2aa55
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Nov 5 10:30:29 2016 +0100
Switch to bugzilla 5 on epel7
...pel-7.repo => eseyman-bugzilla-5.0-epel-7.repo} | 10 ++++++----
roles/bugzilla/tasks/main.yml | 5 +++--
2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/roles/bugzilla/files/eseyman-bugzilla-4.4-epel-7.repo
b/roles/bugzilla/files/eseyman-bugzilla-5.0-epel-7.repo
similarity index 50%
rename from roles/bugzilla/files/eseyman-bugzilla-4.4-epel-7.repo
rename to roles/bugzilla/files/eseyman-bugzilla-5.0-epel-7.repo
index 8ceee58..6270083 100644
--- a/roles/bugzilla/files/eseyman-bugzilla-4.4-epel-7.repo
+++ b/roles/bugzilla/files/eseyman-bugzilla-5.0-epel-7.repo
@@ -1,8 +1,10 @@
-[eseyman-bugzilla-4.4]
-name=Copr repo for bugzilla-4.4 owned by eseyman
-baseurl=https://copr-be.cloud.fedoraproject.org/results/eseyman/bugzilla-4.4/epel-7-$basearch/
+[eseyman-bugzilla-5.0]
+name=Copr repo for bugzilla-5.0 owned by eseyman
+baseurl=https://copr-be.cloud.fedoraproject.org/results/eseyman/bugzilla-5.0/epel-7-$basearch/
+type=rpm-md
skip_if_unavailable=True
gpgcheck=1
-gpgkey=https://copr-be.cloud.fedoraproject.org/results/eseyman/bugzilla-4.4/pubkey.gpg
+gpgkey=https://copr-be.cloud.fedoraproject.org/results/eseyman/bugzilla-5.0/pubkey.gpg
+repo_gpgcheck=0
enabled=1
enabled_metadata=1
\ No newline at end of file
diff --git a/roles/bugzilla/tasks/main.yml b/roles/bugzilla/tasks/main.yml
index 46b0415..45cc69c 100644
--- a/roles/bugzilla/tasks/main.yml
+++ b/roles/bugzilla/tasks/main.yml
@@ -1,12 +1,13 @@
---
# tasks file for bugzilla
#
-- name: install eseyman bugzilla 4.4 copr repo
- copy: src="eseyman-bugzilla-4.4-epel-7.repo"
dest="/etc/yum.repos.d/eseyman-bugzilla-4.4-epel-7.repo" owner=root group=root
+- name: install eseyman bugzilla 5.0 copr repo
+ copy: src="eseyman-bugzilla-5.0-epel-7.repo"
dest="/etc/yum.repos.d/bugzilla-epel.repo" owner=root group=root
tags:
- config
- packages
- yumrepos
+ when: ansible_distribution_major_version|int == 7
- name: install needed packages for bugzilla
yum: pkg={{ item }} state=present
Show replies by date