Compare commits

..

2 Commits

Author SHA1 Message Date
b9592b1697 Create new pvl client and reference in main.yml. 2020-01-20 14:14:32 -06:00
bf8cc090ad Move to single file for client deploys. 2020-01-20 14:14:06 -06:00
4 changed files with 17 additions and 9 deletions

View File

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

View File

@ -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

View 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