From db310ba716920fc7d3dcc248c835ac4db9bc061b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 5 Jun 2023 17:51:50 +0200 Subject: [PATCH] debian: take it easy with the reboots --- roles/debian/handlers/main.yml | 3 +++ roles/debian/tasks/main.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/debian/handlers/main.yml b/roles/debian/handlers/main.yml index 9afde6e..9e0bbc8 100644 --- a/roles/debian/handlers/main.yml +++ b/roles/debian/handlers/main.yml @@ -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 diff --git a/roles/debian/tasks/main.yml b/roles/debian/tasks/main.yml index 5e5920d..d9f7852 100644 --- a/roles/debian/tasks/main.yml +++ b/roles/debian/tasks/main.yml @@ -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