gating: Workaround to install latest packages

Thanks to Miroslav Vadkerti (mvadkert) for the workaround.

Without this an older version of osbuild-composer was being installed,
and it would not start the server.

Related: rhbz#1996788
This commit is contained in:
Brian C. Lane 2021-08-24 13:55:28 -07:00
parent bc2e008139
commit 7884656f4a

View File

@ -1,6 +1,31 @@
---
# Run weldr-client tests with osbuild-composer
- hosts: localhost
# workaround to get latest packages installed until TFT-388 is resolved
pre_tasks:
- block:
- name: Set tag-repository priority so it is preferred
command: "sed -i 's/priority=.*/priority=9/' /etc/yum.repos.d/tag-repository.repo"
- name: Update to latest packages
command: "dnf -y update *"
register: update_packages
- block:
- name: Restart if kernel updated
reboot:
- name: Wait for connection for 5 minutes
wait_for_connection:
delay: 5
timeout: 300
when: "'kernel-' in update_packages.stdout"
tags:
- classic
roles:
- role: standard-test-basic
tags: