You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
583 B
YAML

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