[libvirt] [jenkins-ci PATCH 2/2] guests: Don't warn when bootstrapping package manager

Andrea Bolognani posted 2 patches 7 years, 6 months ago
[libvirt] [jenkins-ci PATCH 2/2] guests: Don't warn when bootstrapping package manager
Posted by Andrea Bolognani 7 years, 6 months ago
Ansible will try to get us to use the apt or dnf modules, but we
can't really do that when we are bootstrapping said modules, so
just silence the warning.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 guests/tasks/base.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
index acdcc11..6acd967 100644
--- a/guests/tasks/base.yml
+++ b/guests/tasks/base.yml
@@ -37,6 +37,7 @@
   command: apt-get install -y python-apt
   args:
     creates: /usr/lib/python2*/*-packages/apt
+    warn: no
   when:
     - package_format == 'deb'
 
@@ -44,6 +45,7 @@
   command: dnf install -y python2-dnf
   args:
     creates: /usr/lib*/python2*/*-packages/dnf
+    warn: no
   when:
     - os_name == 'Fedora'
 
-- 
2.13.6

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