network/tests/tests_802_1x_nm.yml
Rich Megginson 9371bc5040 test: skip 802_1x tests on el7, RHEL other than 8
802_1x tests are only supported on EL8 and later,
and RHEL only on 8.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2025-08-29 17:16:54 -06:00

26 lines
886 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
# This file was generated by ensure_provider_tests.py
---
# set network provider and gather facts
# yamllint disable rule:line-length
- name: Run playbook 'playbooks/tests_802_1x.yml' with nm as provider
hosts: all
tasks:
- name: Include the task 'el_repo_setup.yml'
include_tasks: tasks/el_repo_setup.yml
- name: Set network provider to 'nm'
set_fact:
network_provider: nm
tags:
- always
# The test requires or should run with NetworkManager, therefore it cannot run
# on RHEL/CentOS 6
- name: Import the playbook 'playbooks/tests_802_1x.yml'
import_playbook: playbooks/tests_802_1x.yml
when:
- ansible_distribution_major_version != '6'
- (ansible_distribution != 'RedHat' and
ansible_distribution_major_version | int > 7) or
ansible_distribution_major_version | int == 8