blob: c8b32641798c36de3bf5c362a2d197188a62a35f (
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
31
32
33
34
35
36
37
38
39
40
41
42
|
---
- name: install wgkex dependencies
pacman:
name:
- git
- python-virtualenv
- python-setuptools
state: present
- name: clone wgkex repo
git:
repo: https://github.com/FreifunkMYK/wgkex.git
dest: /opt/wgkex
- name: create venv
command:
cmd: "python -m venv /opt/wgkex/.venv"
creates: /opt/wgkex/.venv
- name: install requirements
pip:
requirements: /opt/wgkex/requirements.txt
virtualenv: /opt/wgkex/.venv
- name: install wgkex config
template:
src: wgkex.yaml.j2
dest: /etc/wgkex.yaml
mode: 0644
notify: restart wgkex
- name: create wgkex service
copy:
src: wgkex.service
dest: /etc/systemd/system/wgkex.service
mode: 0644
- name: start and enable wgkex service
systemd:
name: wgkex
state: started
enabled: yes
|