# 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
