--- - name: Install wireguard server on launched hosts hosts: launched remote_user: admin become: true vars_prompt: - name: vpn_clients_text prompt: Please provide a space separated list of clients keys to generate (e.g. "mobilephone dekstop" default: "" private: no - name: dns_for_clients prompt: Please provide the dns that is announced to clients (e.g. 10.100.100.1 if pihole is used on server). Defaults to 9.9.9.9 default: "9.9.9.9" private: no vars: vpn_client_names: "{{ vpn_clients_text.split(' ') }}" vpn_clients: [] vpn_network: '10.100.100' vpn_port: '58172' roles: - wireguard_server