mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-03-23 05:22:00 +01:00
This can be used to force re-peering, as systemd-networkd does not do this on its own. Link: https://github.com/systemd/systemd/issues/9911 Signed-off-by: Christian Heusel <christian@heusel.eu>
11 lines
316 B
YAML
11 lines
316 B
YAML
- name: Invalidate wireguard interfaces
|
|
hosts: all
|
|
tasks:
|
|
- name: Delete wg0 # noqa no-changed-when
|
|
command: networkctl delete wg0
|
|
register: result
|
|
failed_when: result.rc not in [0, 1]
|
|
|
|
- name: Reload .network and .netdev files # noqa no-changed-when
|
|
command: networkctl reload
|