githubixx wireguard ansible role might be what you are looking for. The author of the role says:
I use WireGuard to setup a fully meshed VPN (every host can directly connect to
every other host) and run my Kubernetes (K8s) cluster at Hetzner Cloud (but you
should be able to use any hoster you want). So the important components like the
K8s controller ...