debian: take it easy with the reboots

This commit is contained in:
Timotej Lazar 2023-06-05 17:51:50 +02:00
parent 7c209a7c5c
commit db310ba716
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,9 @@
- name: reboot
reboot:
- name: reload interfaces
command: ifreload -a
- name: reload frr
command: /usr/lib/frr/frr-reload.py --reload /etc/frr/frr.conf

View file

@ -14,14 +14,14 @@
dest: /etc/network/interfaces.d/loopback.intf
src: loopback.intf.j2
mode: 0644
notify: reboot
notify: reload interfaces
- name: Set up fabric interfaces
template:
dest: /etc/network/interfaces.d/fabric.intf
src: fabric.intf.j2
mode: 0644
notify: reboot
notify: reload interfaces
- name: Install ifupdown2
package: name=ifupdown2