From 6932180ecc96468ec8453c4ec4d959ecea197123 Mon Sep 17 00:00:00 2001 From: Rafael Laszlo <rlacko99@gmail.com> Date: Fri, 19 Nov 2021 19:09:04 +0100 Subject: [PATCH] Fix netplan on container restart --- ansible/router/main/base.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/router/main/base.yaml b/ansible/router/main/base.yaml index 8f896be..b125e26 100644 --- a/ansible/router/main/base.yaml +++ b/ansible/router/main/base.yaml @@ -10,6 +10,11 @@ vars_files: - "vars/base.yaml" tasks: + - name: Ensure netplan is applied at boot + ansible.builtin.cron: + name: "netplan update" + special_time: reboot + job: "/usr/sbin/netplan apply" - name: Setup bgp tags: ["bgp"] import_tasks: tasks/bgp.yaml -- GitLab