From 44bcb711b1ff2b1de8f6534804dc3c621005f08a 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. Signed-off-by: Cleber Rosa --- .github/workflows/prerelease.yml | 2 +- selftests/deployment/roles/common/tasks/main.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 130883b157..9cf5ee76ba 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -68,7 +68,7 @@ jobs: name: Avocado deployment runs-on: ubuntu-latest container: - image: fedora:38 + 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