ansible/host_vars/technetium/main.yml

38 lines
896 B
YAML
Raw Normal View History

2022-07-21 15:19:24 +02:00
---
ansible_host: technetium.lan
## Users
users:
g33kex: sudo, video
histausse: sudo, video
antoine:
2022-07-21 15:19:24 +02:00
## Networking
interfaces:
eth0:
type: dhcp
wg0:
ipv4: "{{ intranet.subnets.physical.subnets.technetium.ipv4 }}"
netmaskv4: "{{ intranet.netmaskv4 }}"
type: wireguard
ipv4_forwarding: false
ipv6_forwarding: false
lan_address: "{{ intranet.subnets.physical.subnets.technetium.ipv4 }}"
## VPN
vpn_interfaces:
wg0:
ip: "{{ interfaces.wg0.ipv4 }}"
private_key: "{{ vpn_key }}"
public_key: "sBk95X1alesUr7EhbJ04SfQ3HXHhnE4mm9PGYNa1xmc="
keepalive: true
peers:
- endpoint: "{{ hostvars['hindley'].interfaces.enp2s0.ipv4 }}"
public_key: "{{ hostvars['hindley'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['hindley'].vpn_interfaces.wg0.ip }}/{{ interfaces.wg0.netmaskv4 }}"
comment: "hindley"