--- # Stand up the node-level VPN egress tunnel on the designated egress-gateway node(s) # (ADR-0015). Host infra — the split-tunnel OpenVPN service + policy routing + scoped # nftables kill-switch. The CiliumEgressGatewayPolicy that steers vpn-class pods to this # node's tun0 is authored separately as GitOps (platform/), against the same contract: # * inventory group `vpn_egress_gateway` (this play's default target) # * k8s node label homelab.keithjackson.dev/egress-gateway=true (set by the role) # * host tunnel iface tun0 (split-tunnel; never the node default route) # # Secrets come from Ansible vault (inventory/group_vars/vpn_egress_gateway/vault.yml): # vault_vpn_egress_gateway_pia_username, vault_vpn_egress_gateway_pia_password, vault_vpn_egress_gateway_pia_ovpn # Run: ansible-playbook playbooks/vpn.egress.gateway.yml # # TARGET (R-ENV-02): the group is a var, defaulting to dev's `vpn_egress_gateway`. Prod # has NOT decided whether it runs an egress gateway at all, nor on which node # (infra/PROD-PROVISIONING.md §6, last box) — so there is deliberately no prod egress # group in the inventory yet. When there is, point this at it with # -e vpn_egress_gateway_hosts= # and it needs its OWN vaulted PIA credentials group_vars; this play's vault is scoped to # the dev group. - name: Configure the node-level VPN egress gateway hosts: "{{ vpn_egress_gateway_hosts | default('vpn_egress_gateway') }}" become: true gather_facts: true # package module + service facts need os facts roles: - role: vpn_egress_gateway