Changeset - 48722e0e209c
[Not reviewed]
0 1 0
x - 2 days ago 2025-08-24 00:00:25
xbr@c3l.lu
fix: rt_tables exists on remote
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
gateway/initial_gw_setup.yml
Show inline comments
 
@@ -62,48 +62,49 @@
 
        src: /run/systemd/resolve/resolv.conf
 
        dest: /etc/resolv.conf
 
        owner: root
 
        group: root
 
        state: link
 
        attributes: '-i'
 
        force: true
 
      become: true
 
      tags: config
 
    - name: Start systemd-resolved
 
      ansible.builtin.service:
 
        name: "systemd-resolved"
 
        state: "started"
 
        enabled: "true"
 
      tags: config
 

	
 
    - name: Ensure /etc/iproute2 exists
 
      ansible.builtin.file:
 
        path: /etc/iproute2
 
        state: directory
 
        mode: '0755'
 
      tags: config
 
    - name: Copy routing table if non-existing
 
      ansible.builtin.copy:
 
        remote_src: true
 
        src: /usr/share/iproute2/rt_tables
 
        dest: /etc/iptables2/rt_tables
 
        force: false
 
      tags: config
 
    - name: Add the routing table for freifunk
 
      ansible.builtin.blockinfile:
 
        path: /etc/iproute2/rt_tables
 
        backup: true
 
        block: |
 
          # freifunk
 
          33      lux
 
          42      icvpn
 
          100     vpn
 
      tags: config
 

	
 
    # Modules
 
    - name: Load `br_netfilter` kernel module
 
      community.general.modprobe:
 
        name: "br_netfilter"
 
        persistent: "present"
 
        state: "present"
 
    - name: Add `nf_conntrack` to modules
 
      community.general.modprobe:
 
        name: "nf_conntrack"
0 comments (0 inline, 0 general)