mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 17:59:00 +00:00
9 lines
346 B
YAML
9 lines
346 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
# need to run setup again when this is just a task to ensure ansible_interfaces
|
|
# is current
|
|
- setup:
|
|
- name: "assert that interface {{ interface }} is absent"
|
|
assert:
|
|
that: "{{ not interface in ansible_interfaces }}"
|
|
msg: "{{ interface }} is in ansible_interfaces: {{ ansible_interfaces }}"
|