mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-24 22:36:38 +00:00
10 lines
261 B
YAML
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 }}"
|