blob: da7f0b47c7c1272f38694e5de87f927aaa0c3cc2 (
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
- name: build wg_add
make:
chdir: /opt/wg_add
- name: install wg_add service
template:
src: wg_add.service.j2
dest: /etc/systemd/system/wg_add@.service
mode: 0644
- name: start and enable wgkex service
systemd:
name: wg_add@{{ item.name }}
state: started
enabled: yes
with_items: "{{ sites }}"
|