network/handlers/main.yaml

10 lines
260 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
2023-09-24 00:48:12 +00:00
command: nmcli conn up "{{ item }}"
2021-10-27 14:08:42 +00:00
loop: "{{ reload_interfaces | unique }}"