2020-12-28 15:45:26 +01:00
|
|
|
---
|
|
|
|
- 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
|
2020-12-28 18:04:08 +01:00
|
|
|
- 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
|
2020-12-28 15:45:26 +01:00
|
|
|
vars:
|
|
|
|
vpn_client_names: "{{ vpn_clients_text.split(' ') }}"
|
|
|
|
vpn_clients: []
|
|
|
|
vpn_network: '10.100.100'
|
|
|
|
vpn_port: '58172'
|
|
|
|
roles:
|
|
|
|
- wireguard_server
|