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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux