Create new ling8 client config, reference it properly for deploys.

master
jowj 4 years ago
parent 3f624002a5
commit 31c97f8123

@ -0,0 +1,8 @@
---
- name: generate ling8 client config
hosts: dev #localhost
tasks:
- debug: msg="generate remote laptop config"
roles:
- { name: wg_vpn }

@ -38,3 +38,9 @@
tags:
- clients
- client_matrix
- name: Create .conf file in /etc/wireguard/.
template: src=ling8.conf dest=/etc/wireguard/ owner=root mode=0600
tags:
- clients
- client_ling8

@ -0,0 +1,9 @@
[Interface]
PrivateKey = {{ wireguard_clients[2]['privkey'] }}
Address = {{ wireguard_vpn_network | ipsubnet(32, wireguard_clients[2]['offset']) }}
DNS = 1.1.1.1
[Peer]
PublicKey = {{ wireguard_server_pubkey }}
Endpoint = vpn.awful.club:51820
AllowedIPs = 0.0.0.0/0
Loading…
Cancel
Save