network/examples
Rich Megginson 65e74567d4 refactor: support Ansible 2.19
The big problem was trying to use `vars` with `import_playbook`.

We do not need to use `import_playbook` when `include_tasks` will
work.  Perhaps the original author of these tests thought that
the play `roles` keyword was the only way to invoke roles, so
that had to be "called" using an `import_playbook`?

Use `include_tasks` instead of `import_playbook`, and move some
of those "tasks" playbooks to be tasks files in tests/tasks.

Use `include_role` instead of `import_role`.

Do not set variables using `set_fact` if they have already been
set at the appropriate scope using `vars`.

"Modernize" the code somewhat.

Improve formatting.

Work around an Ansible bug https://github.com/ansible/ansible/issues/85394

Fix ansible-lint and ansible-test issues related newer versions of
those tools.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2025-07-02 14:42:43 -06:00
..
bond_options.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
bond_simple.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
bond_with_vlan.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
bridge_with_vlan.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
cloned_mac.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
dummy_simple.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
eth_dns_support.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
eth_simple_auto.yml feat: Support autoconnect_retries 2024-10-08 10:25:58 -04:00
eth_with_802_1x.yml fix ansible-lint issues in example code 2024-06-04 18:09:20 -06:00
eth_with_vlan.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
eth_with_wait_ip.yml feat: Support wait_ip property 2024-10-29 09:43:38 -04:00
ethtool_coalesce.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
ethtool_features.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
ethtool_features_default.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
ethtool_ring.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
ignore_auto_dns.yml feat: Support ipv4_ignore_auto_dns and ipv6_ignore_auto_dns settings 2023-05-29 12:56:41 +02:00
infiniband.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
inventory Add SPDX-License-Identifier headers 2018-03-13 10:06:30 +01:00
ipv6_disabled.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
macvlan.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
macvtap.yml fix ansible-lint issues in example code 2024-06-04 18:09:20 -06:00
match_path_support.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
network_state.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
network_state_example.yml refactor: support Ansible 2.19 2025-07-02 14:42:43 -06:00
roles Avoid symlink loop and nonstandard top level roles directory - move to tests 2018-05-16 20:03:05 +02:00
route_table_support.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
route_type_support.yml feat: Support blackhole, prohibit and unreachable route types 2024-01-12 14:14:50 -07:00
team_simple.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
wireless_wpa3_owe.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
wireless_wpa3_sae.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00
wireless_wpa_psk.yml ansible-lint 6.x updates 2023-01-08 15:12:11 -07:00