Compare commits
2 Commits
31c97f8123
...
b9592b1697
Author | SHA1 | Date | |
---|---|---|---|
b9592b1697 | |||
bf8cc090ad |
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: generate ling8 client config
|
|
||||||
hosts: dev #localhost
|
|
||||||
tasks:
|
|
||||||
- debug: msg="generate remote laptop config"
|
|
||||||
roles:
|
|
||||||
- { name: wg_vpn }
|
|
@ -39,8 +39,15 @@
|
|||||||
- clients
|
- clients
|
||||||
- client_matrix
|
- client_matrix
|
||||||
|
|
||||||
- name: Create .conf file in /etc/wireguard/.
|
- name: Create ling8.conf file in /etc/wireguard/.
|
||||||
template: src=ling8.conf dest=/etc/wireguard/ owner=root mode=0600
|
template: src=ling8.conf dest=/etc/wireguard/ owner=root mode=0600
|
||||||
tags:
|
tags:
|
||||||
- clients
|
- clients
|
||||||
- client_ling8
|
- client_ling8
|
||||||
|
|
||||||
|
- name: Create pvl.conf file in /etc/wireguard/.
|
||||||
|
template: src=pvl.conf dest=/etc/wireguard/ owner=root mode=0600
|
||||||
|
tags:
|
||||||
|
- clients
|
||||||
|
- client_pvl
|
||||||
|
|
||||||
|
9
ansible/roles/wg_vpn/templates/pvl.conf
Normal file
9
ansible/roles/wg_vpn/templates/pvl.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Interface]
|
||||||
|
PrivateKey = {{ wireguard_clients[1]['privkey'] }}
|
||||||
|
Address = {{ wireguard_vpn_network | ipsubnet(32, wireguard_clients[1]['offset']) }}
|
||||||
|
DNS = 1.1.1.1
|
||||||
|
|
||||||
|
[Peer]
|
||||||
|
PublicKey = {{ wireguard_server_pubkey }}
|
||||||
|
Endpoint = vpn.awful.club:51820
|
||||||
|
AllowedIPs = 0.0.0.0/0
|
Loading…
Reference in New Issue
Block a user