You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
268 B

  1. ---
  2. - name: "reset | check if network device {{ iface }} is present"
  3. stat:
  4. path: "/sys/class/net/{{ iface }}"
  5. register: device_remains
  6. - name: "reset | remove network device {{ iface }}"
  7. command: "ip link del {{ iface }}"
  8. when: device_remains.stat.exists