This commit is contained in:
ace
2021-10-27 17:08:42 +03:00
parent 0694f3649e
commit 6b9e036057
3 changed files with 24 additions and 10 deletions

View File

@ -1,9 +1,9 @@
---
- name: Up interface
shell: |
ifdown {{ item.name }} ; ifup {{ item.name }}
loop: "{{ network.network_scripts.iface }}"
ifdown {{ item }} ; ifup {{ item }}
loop: "{{ reload_interfaces | unique }}"
- name: Reload interface with nmcli
command: nmcli conn up {{ item.conn_name }}
loop: "{{ network.network_manager.iface }}"
command: nmcli conn up {{ item }}
loop: "{{ reload_interfaces | unique }}"