mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +00:00
Ansible 2.20 has deprecated the use of Ansible facts as variables. For example, `ansible_distribution` is now deprecated in favor of `ansible_facts["distribution"]`. This is due to making the default setting `INJECT_FACTS_AS_VARS=false`. For now, this will create WARNING messages, but in Ansible 2.24 it will be an error. See https://docs.ansible.com/projects/ansible/latest/porting_guides/porting_guide_core_2.20.html#inject-facts-as-vars Signed-off-by: Rich Megginson <rmeggins@redhat.com>
31 lines
1 KiB
YAML
31 lines
1 KiB
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Check that creating and removing test devices and assertions work
|
|
hosts: all
|
|
tasks:
|
|
- name: Include the task 'el_repo_setup.yml'
|
|
include_tasks: tasks/el_repo_setup.yml
|
|
|
|
- name: Test veth interface management
|
|
include_tasks: tasks/create_and_remove_interface.yml
|
|
vars:
|
|
type: veth
|
|
interface: veth1298
|
|
|
|
- name: Test veth interface management with dummy interface
|
|
include_tasks: tasks/create_and_remove_interface.yml
|
|
vars:
|
|
type: dummy
|
|
interface: dummy1298
|
|
|
|
# FIXME: when: does not seem to work with include_tasks, therefore this cannot
|
|
# be safely tested for now
|
|
# - name: test tap interfaces
|
|
# include_tasks: tasks/create_and_remove_interface.yml
|
|
# vars:
|
|
# - type: tap
|
|
# - interface: tap1298
|
|
# when: ansible_facts['distribution_major_version'] > 6
|
|
# # ip tuntap does not exist on RHEL6
|
|
# # FIXME: Maybe use some other tool to manage devices, openvpn can do
|
|
# # this, but it is in EPEL
|