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(a)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
Show replies by date