diff --git a/ansible/playbooks/cluster-prepare.yml b/ansible/playbooks/cluster-prepare.yml index 0ef4d5e9..db07d4f1 100644 --- a/ansible/playbooks/cluster-prepare.yml +++ b/ansible/playbooks/cluster-prepare.yml @@ -17,6 +17,7 @@ name: "{{ timezone | default('Etc/UTC') }}" - name: Networking + notify: Restart systemd-networkd block: - name: Networking | Set hostname to inventory hostname ansible.builtin.hostname: @@ -26,6 +27,17 @@ path: /etc/hosts block: | 127.0.1.1 {{ inventory_hostname }} + # https://github.com/cilium/cilium/issues/18706 + - name: Network | Cilium (1) + ansible.builtin.lineinfile: + dest: /etc/systemd/networkd.conf + regexp: ManageForeignRoutingPolicyRules + line: ManageForeignRoutingPolicyRules=no + - name: Network Configuration | Cilium (2) + ansible.builtin.lineinfile: + dest: /etc/systemd/networkd.conf + regexp: ManageForeignRoutes + line: ManageForeignRoutes=no - name: Packages block: @@ -123,6 +135,10 @@ notify: Reboot handlers: + - name: Restart systemd-networkd + ansible.builtin.systemd: + service: systemd-networkd + state: restarted - name: Reboot ansible.builtin.reboot: msg: Rebooting nodes