network/tests/tasks/handle_test_task.yml
Martin Pitt e8a3ff4881 feat: support this role in container builds
Feature: Support running the timesync role during container builds.

Reason: This is particularly useful for building bootc derivative OSes.

Result: These flags enable running the bootc container scenarios in CI,
which ensures that the role works in buildah build environment. This
allows us to officially support this role for image mode builds.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2025-10-20 11:00:34 -06:00

21 lines
599 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
---
- name: Handle test task file
include_tasks: "{{ lsr_test_item }}"
when: lsr_test_item is string
- name: Handle test task with network role
when:
- lsr_test_item is mapping
- lsr_test_item.get("network_connections") is not none
- lsr_test_item.get("condition", true)
block:
- name: Include network role
include_role:
name: linux-system-roles.network
vars:
network_connections: "{{ lsr_test_item['network_connections'] }}"
- name: Show result
debug:
var: __network_connections_result