From f7674cd5bba9d6b0924f8e10ff740b5ef6dd9605 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 9 May 2022 11:40:31 +0200 Subject: [PATCH] Remove ifup/ifdown scripts --- roles/00-system-set-network/tasks/main.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/roles/00-system-set-network/tasks/main.yml b/roles/00-system-set-network/tasks/main.yml index a42bb71..4c407ac 100644 --- a/roles/00-system-set-network/tasks/main.yml +++ b/roles/00-system-set-network/tasks/main.yml @@ -11,18 +11,10 @@ ansible.builtin.shell: netplan apply when: networkconfig.changed -- name: Add ifDown Scripts via networkd-dispatcher - ansible.builtin.template: - src: 50-ifdown-hooks.sh.j2 - dest: /etc/networkd-dispatcher/off.d/50-ifdown-hooks.sh - owner: root - group: root - mode: '0755' +- name: Add Table 42 after netplan Apply + ansible.builtin.shell: /bin/ip rule add fwmark 0x4 table 42 + when: networkconfig.changed -- name: Add ifUP Scripts via networkd-dispatcher - ansible.builtin.template: - src: 50-ifup-hooks.sh.j2 - dest: /etc/networkd-dispatcher/routable.d/50-ifup-hooks.sh - owner: root - group: root - mode: '0755' \ No newline at end of file +- name: Add Table 42v6 after netplan Apply + ansible.builtin.shell: /bin/ip -6 rule add fwmark 0x4 table 42 + when: networkconfig.changed \ No newline at end of file