39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
- hosts: localhost
|
|
tags:
|
|
- classic
|
|
|
|
pre_tasks:
|
|
- name: Generate list of tests in this PR
|
|
shell: |
|
|
git fetch https://src.fedoraproject.org/tests/selinux.git main:upstream-main
|
|
git log --format= --stat --name-only upstream-main..HEAD | sed '/\//!d;s#\(.*\)/.*#\1#' | sort -u | xargs
|
|
delegate_to: localhost
|
|
register: tests_list
|
|
|
|
- name: Set tests
|
|
set_fact:
|
|
tests: "{{ tests_list.stdout.split(' ') }}"
|
|
|
|
# Update to the latest kernel to allow installing kernel-* packages
|
|
# matching the running kernel version.
|
|
# See: https://pagure.io/fedora-ci/general/issue/162
|
|
# May be removed once the issue above is resolved.
|
|
- name: Update kernel packages and reboot
|
|
block:
|
|
- name: Update kernel-core
|
|
shell: dnf update -y kernel-core
|
|
|
|
- name: Restart host
|
|
shell: sleep 2 && shutdown -r now "Ansible updates triggered"
|
|
async: 1
|
|
poll: 0
|
|
ignore_errors: true
|
|
|
|
- name: Wait for host to come back
|
|
wait_for_connection:
|
|
delay: 10
|
|
timeout: 300
|
|
|
|
roles:
|
|
- role: standard-test-beakerlib
|
|
|