install mesh-announce
parent
27432b0ddc
commit
1738af3a5d
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
- name: clone mesh-announce repo
|
||||||
|
git:
|
||||||
|
repo: https://github.com/FreifunkMYK/mesh-announce.git
|
||||||
|
dest: /opt/mesh-announce
|
||||||
|
|
||||||
|
- name: install mesh-announce dependencies
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- lsb-release
|
||||||
|
- ethtool
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: create respondd service
|
||||||
|
template:
|
||||||
|
src: respondd.service.j2
|
||||||
|
dest: /etc/systemd/system/respondd.service
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: start and enable respondd service
|
||||||
|
systemd:
|
||||||
|
name: respondd
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Respondd
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/opt/mesh-announce/respondd.py -d /opt/mesh-announce/providers {% for site in sites %}-i bat{{ site.name }} -i vpn{{ site.name }} -b bat{{ site.name }} {% endfor %}
|
||||||
|
|
||||||
|
Restart=always
|
||||||
|
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue