network/handlers/main.yaml

10 lines
258 B
YAML
Raw Normal View History

2021-10-26 21:34:13 +00:00
---
2021-10-27 14:19:40 +00:00
- name: Reload interface with ifdown ; ifup
2021-10-26 21:34:13 +00:00
shell: |
2021-10-27 14:08:42 +00:00
ifdown {{ item }} ; ifup {{ item }}
loop: "{{ reload_interfaces | unique }}"
2021-10-26 21:34:13 +00:00
- name: Reload interface with nmcli
2021-10-27 14:08:42 +00:00
command: nmcli conn up {{ item }}
loop: "{{ reload_interfaces | unique }}"