[libvirt] [jenkins-ci PATCH] lcitool: Don't warn when using package manager directly

Andrea Bolognani abologna at redhat.com
Mon May 27 13:06:51 UTC 2019


We only do this when performing operations that the
corresponding Ansible module doesn't support, so we know
what we're doing and don't want warnings to show up.

Note that while only the dnf and yum modules complain at
the moment, we might as well use warn=no everywhere so that
we're already covered in case in the future the pkgng module
starts detecting this as well.

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

diff --git a/guests/playbooks/update/tasks/base.yml b/guests/playbooks/update/tasks/base.yml
index 8fe114e..e0efe5d 100644
--- a/guests/playbooks/update/tasks/base.yml
+++ b/guests/playbooks/update/tasks/base.yml
@@ -52,11 +52,15 @@
 
 - name: Update installed packages
   shell: '{{ package_manager }} update && {{ package_manager }} upgrade -y'
+  args:
+    warn: no
   when:
     - package_format == 'pkg'
 
 - name: Clean up packages after update
   shell: '{{ package_manager }} clean packages -y && {{ package_manager }} autoremove -y'
+  args:
+    warn: no
   when:
     - package_format == 'rpm'
 
@@ -69,6 +73,8 @@
 
 - name: Clean up packages after update
   shell: '{{ package_manager }} clean -y && {{ package_manager }} autoremove -y'
+  args:
+    warn: no
   when:
     - package_format == 'pkg'
 
-- 
2.21.0




More information about the libvir-list mailing list