From 746afa3159f1a6d7c6463a6992929990bd39ee10 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Mon, 5 Jul 2021 02:58:46 +0200 Subject: [PATCH] hide under the rug the dhcpcd issue with rabian --- host_vars/rossum/networking.yml | 7 +++++++ host_vars/rossum/vpn.yml | 1 - roles/networking/tasks/main.yml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/host_vars/rossum/networking.yml b/host_vars/rossum/networking.yml index 837d4ca..4618905 100644 --- a/host_vars/rossum/networking.yml +++ b/host_vars/rossum/networking.yml @@ -1,8 +1,15 @@ --- interfaces: + eth0: + ipv4: 192.168.0.50 + netmaskv4: 24 + type: static + routes: + - {subnet: 0.0.0.0, netmask: 0, gateway: 10.0.2.1} wg0: ipv4: "{{ intranet.subnets.physical.subnets.rossum.ipv4 }}" netmaskv4: "{{ intranet.netmaskv4 }}" + type: wireguard ipv4_forwarding: false ipv6_forwarding: false diff --git a/host_vars/rossum/vpn.yml b/host_vars/rossum/vpn.yml index e5fd30c..2591773 100644 --- a/host_vars/rossum/vpn.yml +++ b/host_vars/rossum/vpn.yml @@ -1,7 +1,6 @@ --- vpn_interfaces: wg0: - ip: "{{ interfaces.wg0.ipv4 }}" private_key: "{{ vpn_vault_rossum_key }}" public_key: "YNEp3V5wsDLxDR29WhzECOCdOxiOuxuAqUUwS3gJWT4=" keepalive: true diff --git a/roles/networking/tasks/main.yml b/roles/networking/tasks/main.yml index 7106816..759a074 100644 --- a/roles/networking/tasks/main.yml +++ b/roles/networking/tasks/main.yml @@ -55,4 +55,5 @@ group: root mode: '640' notify: Reload network interfaces + when: (item.value.type == "wireguard") or ("raspbian_buster" not in group_names) loop: "{{ lookup('dict', interfaces) }}"