network/tests/tasks/assert-device_present.yml
Till Maas 49c7c6a0f4 tests: Properly set the name of assert tasks
Otherwise it breaks with Ansible 2.7 or does not show the name with
previous Ansible versions.
2018-10-16 11:31:22 +02:00

8 lines
338 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
---
# need to run setup again when this is just a task to make sure ansible_interfaces is correct
- setup:
- name: "assert that {{ interface }} is present"
assert:
that: "{{ interface in ansible_interfaces }}"
msg: "{{ interface }} is not in ansible_interfaces: {{ ansible_interfaces }}"