network/handlers/main.yml

10 lines
261 B
YAML
Raw Normal View History

2021-10-26 21:34:13 +00:00
---
- name: Up interface
shell: |
2021-10-27 11:30:00 +00:00
ifdown {{ item.name }} ; ifup {{ item.name }}
2021-10-26 21:34:13 +00:00
loop: "{{ network.network_scripts.iface }}"
- name: Reload interface with nmcli
command: nmcli conn up {{ item.conn_name }}
loop: "{{ network.network_manager.iface }}"