diff --git a/playbooks/ci_all_machines_tests.yaml b/playbooks/ci_all_machines_tests.yaml index 4b731a420..a9430b039 100644 --- a/playbooks/ci_all_machines_tests.yaml +++ b/playbooks/ci_all_machines_tests.yaml @@ -14,13 +14,6 @@ - hosts: - cluster_machines - standalone_machine - name: Get system info - tasks: - - name: Execute script - script: ../scripts/ci_system_info.py '{{ tmp_cukinia_dir.path }}/system_info.adoc' - - name: Fetch results - fetch: - src: '{{ tmp_cukinia_dir.path }}/system_info.adoc' - dest: "{{ cukinia_test_prefix | default('..') }}/system_info.adoc" - flat: yes + roles: + - ci_yocto/get_system_info ... diff --git a/scripts/ci_system_info.py b/roles/ci_yocto/get_system_info/files/get_system_info.py similarity index 100% rename from scripts/ci_system_info.py rename to roles/ci_yocto/get_system_info/files/get_system_info.py diff --git a/roles/ci_yocto/get_system_info/tasks/main.yaml b/roles/ci_yocto/get_system_info/tasks/main.yaml new file mode 100644 index 000000000..c55b2c5bb --- /dev/null +++ b/roles/ci_yocto/get_system_info/tasks/main.yaml @@ -0,0 +1,18 @@ +# Copyright (C) 2023 Savoir-faire Linux, Inc. +# SPDX-License-Identifier: Apache-2.0 + +# This roles recover Ci machine info for openlab + +--- +- name: Create temporary test directory + tempfile: + state: directory + register: tmp_test_dir +- name: Execute script + script: get_system_info.py '{{ tmp_test_dir.path }}/system_info.adoc' +- name: Fetch results + fetch: + src: '{{ tmp_test_dir.path }}/system_info.adoc' + dest: "{{ cukinia_test_prefix | default('..') }}/system_info.adoc" + flat: yes +...