Skip to content

Commit

Permalink
roles/ci_yocto/get_system_info: create role
Browse files Browse the repository at this point in the history
This role recover CI machine information for openlab

Signed-off-by: Erwann Roussy <[email protected]>
  • Loading branch information
eroussy committed Sep 9, 2024
1 parent 3f424f2 commit c6c934e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
11 changes: 2 additions & 9 deletions playbooks/ci_all_machines_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
File renamed without changes.
18 changes: 18 additions & 0 deletions roles/ci_yocto/get_system_info/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -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
...

0 comments on commit c6c934e

Please sign in to comment.