From 2de85a451cfac492d0a442fabbfc0e6be5fce456 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Thu, 15 Aug 2024 10:44:03 -0400 Subject: [PATCH] Deployment test: update to Fedora 40 and matching ansible The COPR repos are building for the active Fedora, so let's bump that to version 40. While at it, we will be using a version of ansible that has deprecated the "include" tag. The error one gets is: ERROR! [DEPRECATED]: ansible.builtin.include has been removed. Use include_tasks or import_tasks instead. This feature was removed from ansible-core in a release after 2023-05-16. Please update your playbooks. This updates the playbook to work properly under the matching ansible version. Reference: 44bcb711b1ff2b1de8f6534804dc3c621005f08a Signed-off-by: Cleber Rosa --- .github/workflows/prerelease.yml | 2 +- selftests/deployment/roles/common/tasks/main.yml | 6 +++--- selftests/deployment/roles/common/tasks/repos.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index d24b4f347b..25b79aecf7 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -67,7 +67,7 @@ jobs: name: Avocado deployment runs-on: ubuntu-latest container: - image: fedora:36 + image: fedora:40 env: GIT_URL: 'https://github.com/avocado-framework/avocado' INVENTORY: 'selftests/deployment/inventory' diff --git a/selftests/deployment/roles/common/tasks/main.yml b/selftests/deployment/roles/common/tasks/main.yml index 757fc2c937..d243761c60 100644 --- a/selftests/deployment/roles/common/tasks/main.yml +++ b/selftests/deployment/roles/common/tasks/main.yml @@ -1,4 +1,4 @@ --- -- include: aexpect.yml -- include: repos.yml -- include: dependencies.yml +- include_tasks: aexpect.yml +- include_tasks: repos.yml +- include_tasks: dependencies.yml diff --git a/selftests/deployment/roles/common/tasks/repos.yml b/selftests/deployment/roles/common/tasks/repos.yml index 6017b9ed87..fcb9b4543c 100644 --- a/selftests/deployment/roles/common/tasks/repos.yml +++ b/selftests/deployment/roles/common/tasks/repos.yml @@ -50,7 +50,7 @@ yum_repository: name: avocado-latest description: Copr repo for avocado-latest - baseurl: https://copr-be.cloud.fedoraproject.org/results/@avocado/avocado-latest/fedora-$releasever-$basearch/ + baseurl: https://copr-be.cloud.fedoraproject.org/results/@avocado/avocado-latest-92lts/fedora-$releasever-$basearch/ gpgcheck: no when: - method == 'copr'