Compare commits

..

No commits in common. "b9592b1697027483263b3788932ebb409e4b3b6c" and "31c97f81233000f08b37db507211b8e9d043c917" have entirely different histories.

4 changed files with 9 additions and 17 deletions

8
ansible/client_ling8.yml Normal file
View File

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

View File

@ -39,15 +39,8 @@
- clients
- client_matrix
- name: Create ling8.conf file in /etc/wireguard/.
- name: Create .conf file in /etc/wireguard/.
template: src=ling8.conf dest=/etc/wireguard/ owner=root mode=0600
tags:
- clients
- 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

@ -1,9 +0,0 @@
[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