systemd-networkd/handlers/main.yml

17 lines
613 B
YAML
Raw Normal View History

2020-05-05 19:19:38 +03:00
---
2020-06-04 00:41:22 +03:00
- name: networkd | Do restart
2020-05-05 19:19:38 +03:00
systemd:
name: systemd-networkd
state: restarted
2020-06-04 00:41:22 +03:00
# From man:
# Reload .netdev and .network files. If a new .netdev file is found, then the corresponding netdev is created.
# Note that even if an existing .netdev is modified or removed, systemd-networkd does not update or remove the netdev.
# If a new, modified or removed .network file is found, then all interfaces which match the file are reconfigured.
- name: networkd | Do reload
shell: networkctl reload
- name: networkd | Do nothing
debug:
msg: "Not applying new configuration due to selected action."