fix: do not manage Foreign Routes or Foreign Routing Rules
This commit is contained in:
1 parent
7c9233de30
commit
8d67a5988b
1 file changed
+16
@@ -17,6 +17,7 @@
|
|||||||
name: "{{ timezone | default('Etc/UTC') }}"
|
name: "{{ timezone | default('Etc/UTC') }}"
|
||||||
|
|
||||||
- name: Networking
|
- name: Networking
|
||||||
|
notify: Restart systemd-networkd
|
||||||
block:
|
block:
|
||||||
- name: Networking | Set hostname to inventory hostname
|
- name: Networking | Set hostname to inventory hostname
|
||||||
ansible.builtin.hostname:
|
ansible.builtin.hostname:
|
||||||
@@ -26,6 +27,17 @@
|
|||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
block: |
|
block: |
|
||||||
127.0.1.1 {{ inventory_hostname }}
|
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
|
- name: Packages
|
||||||
block:
|
block:
|
||||||
@@ -123,6 +135,10 @@
|
|||||||
notify: Reboot
|
notify: Reboot
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
- name: Restart systemd-networkd
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
service: systemd-networkd
|
||||||
|
state: restarted
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
msg: Rebooting nodes
|
msg: Rebooting nodes
|
||||||
|
|||||||
Reference in new issue
Block a user