blob: 40ed07c1e58d6697e92e6ffbb43163b831cf0be1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
- name: install wg_add dependencies
pacman:
name:
- git
- make
- gcc
state: present
- name: clone wg_add repo
git:
repo: https://github.com/FreifunkMYK/wg_add.git
dest: /opt/wg_add_vpn
version: vpn
- name: build wg_add
make:
chdir: /opt/wg_add_vpn
- name: install wg_add service
template:
src: wg_add_vpn.service.j2
dest: /etc/systemd/system/wg_add_vpn.service
mode: 0644
- name: start and enable wgkex service
systemd:
name: wg_add_vpn
state: started
enabled: yes
|