We're already doing this for FreeBSD, so do it for CentOS
and Fedora as well.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
guests/playbooks/update/tasks/base.yml | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/guests/playbooks/update/tasks/base.yml
b/guests/playbooks/update/tasks/base.yml
index 59f6124..8fe114e 100644
--- a/guests/playbooks/update/tasks/base.yml
+++ b/guests/playbooks/update/tasks/base.yml
@@ -56,16 +56,7 @@
- package_format == 'pkg'
- name: Clean up packages after update
- command: '{{ package_manager }} clean packages -y'
- args:
- warn: no
- when:
- - package_format == 'rpm'
-
-- name: Clean up packages after update
- command: '{{ package_manager }} autoremove -y'
- args:
- warn: no
+ shell: '{{ package_manager }} clean packages -y && {{ package_manager }}
autoremove -y'
when:
- package_format == 'rpm'
--
2.20.1