Files
toallab-automation/roles/linux-system-roles.network/tests/tasks/get-current_interfaces.yml
2020-08-17 12:06:41 -04:00

9 lines
204 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
---
- command: ls -1
args:
chdir: /sys/class/net
register: _current_interfaces
- set_fact:
current_interfaces: "{{ _current_interfaces.stdout_lines }}"