We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a6b4aa commit 4bdcfbaCopy full SHA for 4bdcfba
tasks/main.yml
@@ -65,10 +65,10 @@
65
- network-interfaces-remove-configurations
66
67
- name: restart devices
68
- service:
69
- name: "{{ network_interfaces_service }}"
70
- state: restarted
71
- arguments: "INTERFACE={{ item.item.device }}"
+ shell: >
+ [ -n "$(ifquery --list --exclude=lo)" ] && udevadm settle
+ && ip addr flush {{ item.item.device }}
+ && (ifdown {{ item.item.device }} --exclude=lo || true) && ifup {{ item.item.device }} --exclude=lo
72
when: item.changed and item.item.auto | default(true)
73
with_items: "{{ _network_interfaces_configuration_result.results | default([]) }}"
74
tags:
0 commit comments