[libvirt] [jenkins-ci PATCH] lcitool: Only install EPEL on CentOS

Andrea Bolognani posted 1 patch 4 years, 3 months ago
Failed in applying to current master (apply log)
guests/playbooks/update/tasks/base.yml | 2 ++
1 file changed, 2 insertions(+)
[libvirt] [jenkins-ci PATCH] lcitool: Only install EPEL on CentOS
Posted by Andrea Bolognani 4 years, 3 months ago
This fixes a bug introduced by commit 0a7993d3ed30 which caused
our machinery to try to install the epel-release on all targets,
including the likes of Debian and even FreeBSD.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
Pushed under the build breaker rule.

 guests/playbooks/update/tasks/base.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guests/playbooks/update/tasks/base.yml b/guests/playbooks/update/tasks/base.yml
index 8128975..f721e39 100644
--- a/guests/playbooks/update/tasks/base.yml
+++ b/guests/playbooks/update/tasks/base.yml
@@ -21,6 +21,8 @@
   package:
     name: epel-release
     state: latest
+  when:
+    - os_name == 'CentOS'
 
 - name: Create OpenVZ key
   template:
-- 
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list