fix: do not manage Foreign Routes or Foreign Routing Rules

This commit is contained in:
Devin Buhl authored and GitHub committed 2023-07-01 08:09:02 -04:00
1 parent 7c9233de30
commit 8d67a5988b
1 file changed
+16
+16
View File
@@ -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