hide under the rug the dhcpcd issue with rabian

This commit is contained in:
histausse 2021-07-05 02:58:46 +02:00
parent 4e962888f6
commit 746afa3159
Signed by: histausse
GPG key ID: 67486F107F62E9E9
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -1,7 +1,6 @@
---
vpn_interfaces:
wg0:
ip: "{{ interfaces.wg0.ipv4 }}"
private_key: "{{ vpn_vault_rossum_key }}"
public_key: "YNEp3V5wsDLxDR29WhzECOCdOxiOuxuAqUUwS3gJWT4="
keepalive: true

View file

@ -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) }}"