--- vpn_interfaces: wg0: ip: "{{ interfaces.wg0.ipv4 }}" private_key: "{{ vpn_vault_hindley_key }}" public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA=" keepalive: false peers: - endpoint: "" public_key: "{{ hostvars['azerty'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['azerty'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "azerty" - endpoint: "" public_key: "{{ hostvars['hellman'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['hellman'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "hellman" - endpoint: "" public_key: "{{ vpn_guest_keys.knuth }}" allowed_ip: "{{ intranet.subnets.guest.subnets.knuth.ipv4 }}" allowed_mask: "{{ intranet.subnets.guest.subnets.knuth.netmaskv4 }}" comment: "Client laptop: knuth" - endpoint: "" public_key: "{{ hostvars['rossum'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['rossum'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "Raspi at paris, Rossum" - endpoint: "" public_key: "{{ hostvars['vm1'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['vm1'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "Test VM 1, hosted by knuth" - endpoint: "" public_key: "{{ hostvars['vm2'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['vm2'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "Test VM 2, hosted by knuth" - endpoint: "" public_key: "{{ hostvars['vm3'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['vm3'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "Test VM 3, hosted by knuth" - endpoint: "" public_key: "{{ hostvars['vm4'].vpn_interfaces.wg0.public_key }}" allowed_ip: "{{ hostvars['vm4'].vpn_interfaces.wg0.ip }}" allowed_mask: 32 comment: "Test VM 4, hosted by knuth"