mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
Improve bond test failure debugging * put test setup into block/always so that cleanup happens for setup failures * trace shell commands so that we can determine exactly which command failed * add error reporting so that when certain commands fail, we can determine the error code Signed-off-by: Rich Megginson <rmeggins@redhat.com>
23 lines
517 B
YAML
23 lines
517 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Remove test interfaces
|
|
shell: |
|
|
set -uxo pipefail
|
|
exec 1>&2
|
|
ip netns delete ns1
|
|
ip link delete veth1-br
|
|
ip link delete veth2-br
|
|
ip link delete br1
|
|
changed_when: false
|
|
|
|
- name: Kill hostapd process
|
|
command: pkill hostapd
|
|
changed_when: false
|
|
- name: Remove certs and config
|
|
file:
|
|
state: absent
|
|
path: "{{ item }}"
|
|
with_items:
|
|
- /etc/pki/tls/hostapd_test
|
|
- /etc/hostapd/wired.conf
|
|
- /etc/hostapd/hostapd.eap_user
|