network/handlers/main.yml
2021-10-27 14:30:00 +03:00

10 lines
261 B
YAML

---
- name: Up interface
shell: |
ifdown {{ item.name }} ; ifup {{ item.name }}
loop: "{{ network.network_scripts.iface }}"
- name: Reload interface with nmcli
command: nmcli conn up {{ item.conn_name }}
loop: "{{ network.network_manager.iface }}"