mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2025-07-20 06:43:08 +00:00
11 lines
320 B
YAML
11 lines
320 B
YAML
---
|
|
- name: Reload interface with ifdown ; ifup
|
|
shell: |
|
|
ifdown {{ item }} ; ifup {{ item }}
|
|
loop: "{{ reload_interfaces | unique }}"
|
|
|
|
- name: Reload interface with nmcli
|
|
command: nmcli conn up "{{ item }}"
|
|
loop: "{{ reload_interfaces | unique }}"
|
|
when: item.state is not defined or item.state != "absent"
|