We already use the package module to update all RPM-based distros
just a few lines above.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
guests/playbooks/update/tasks/base.yml | 7 -------
1 file changed, 7 deletions(-)
diff --git a/guests/playbooks/update/tasks/base.yml
b/guests/playbooks/update/tasks/base.yml
index b3ab738..188ef0a 100644
--- a/guests/playbooks/update/tasks/base.yml
+++ b/guests/playbooks/update/tasks/base.yml
@@ -72,13 +72,6 @@
when:
- package_format == 'pkg'
-- name: Update installed packages
- command: '{{ package_manager }} update -y -l --force-resolution
--no-recommends'
- args:
- warn: no
- when:
- - os_name == 'OpenSUSE'
-
- name: Clean up packages after update
shell: '{{ package_manager }} clean packages -y && {{ package_manager }}
autoremove -y'
args:
--
2.23.0