mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-18 17:05:13 +00:00
When a profile is specified as absent, ignore state requests if the profile is already removed or not completely specified to improve idempotence. Also restructure the states test. This introduces a clear structure for the individual test steps, properly assigns tags for each test from the file and provides a clear error message with a description of the test that failed in case of errors. Support for tests that expect a failure is still missing.
6 lines
154 B
YAML
6 lines
154 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: remove test interface if necessary
|
|
command: "ip link del {{ interface }}"
|
|
ignore_errors: true
|
|
...
|