18 lines
462 B
YAML
18 lines
462 B
YAML
|
---
|
||
|
- 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
|
||
|
vars:
|
||
|
vpn_client_names: "{{ vpn_clients_text.split(' ') }}"
|
||
|
vpn_clients: []
|
||
|
vpn_network: '10.100.100'
|
||
|
vpn_port: '58172'
|
||
|
roles:
|
||
|
- wireguard_server
|