tests: force rpm pkg upgrade

Due to a bug with the rpm version present in the current stream8 vagrant image,
we have to make sure it is first upgraded to the latest version.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit b87f214a96)
pull/7420/head
Guillaume Abrioux 2023-03-22 16:29:46 +01:00
parent b9049ba68f
commit 9f44aa21b0
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@
set_fact:
is_atomic: '{{ stat_ostree.stat.exists }}'
- name: force rpm pkg upgrade
package:
name: rpm
state: latest
when: not is_atomic | bool
- name: update the system
command: dnf update -y
changed_when: false