Files
network/handlers/main.yaml
2025-06-30 02:42:11 +03:00

11 lines
320 B
YAML

---
- name: Reload interface with ifdown ; ifup
shell: |
ifdown {{ item }} ; ifup {{ item }}
loop: "{{ reload_interfaces | unique }}"
- name: Reload interface with nmcli
command: nmcli conn up "{{ item }}"
loop: "{{ reload_interfaces | unique }}"
when: item.state is not defined or item.state != "absent"