ansible-edda/playbooks/vpn.yml

35 lines
1.2 KiB
YAML

---
- name: "vpn : all"
hosts: "all"
roles:
- role: "vpn/base"
tags: "vpn:base"
- role: "vpn/wireguard"
tags: "vpn:wireguard"
- name: "vpn : asgard"
hosts: "asgard"
roles:
- role: "vpn/bridge"
tags: "vpn:bridge"
- name: "vpn : heimdall"
hosts: "heimdall"
roles:
- role: "vpn/wireguard"
tags: "vpn:airvpn"
vars:
vpn_wireguard_iface: "wg-airvpn"
vpn_wireguard_role: "{{ vpn_airvpn_role }}"
vpn_wireguard_port: "{{ vpn_airvpn_port }}"
vpn_wireguard_inet_address: "{{ vpn_airvpn_inet_address }}"
vpn_wireguard_inet_prefixlen: "{{ vpn_airvpn_inet_prefixlen }}"
vpn_wireguard_inet6_address: "{{ vpn_airvpn_inet6_address }}"
vpn_wireguard_inet6_prefixlen: "{{ vpn_airvpn_inet6_prefixlen }}"
vpn_wireguard_mtu: "{{ vpn_airvpn_mtu }}"
vpn_wireguard_interface_private_key: "{{ vpn_airvpn_interface_private_key }}"
vpn_wireguard_server_public_key: "{{ vpn_airvpn_server_public_key }}"
vpn_wireguard_server_preshared_key: "{{ vpn_airvpn_server_preshared_key }}"
vpn_wireguard_server_address: "{{ vpn_airvpn_server_address }}"
vpn_wireguard_routing_table: "{{ vpn_airvpn_routing_table }}"