2017-10-15 10:18:26 +02:00
|
|
|
---
|
2017-11-07 20:25:39 +01:00
|
|
|
- name: install packages
|
|
|
|
package:
|
|
|
|
name: python3-netifaces
|
|
|
|
state: present
|
|
|
|
|
2017-10-15 10:18:26 +02:00
|
|
|
- name: clone respondd repo
|
|
|
|
git:
|
|
|
|
repo: https://github.com/freifunk-mwu/mesh-announce.git
|
|
|
|
dest: /home/admin/clones/mesh-announce
|
|
|
|
version: mwu-respondd
|
|
|
|
become: false
|
|
|
|
|
2018-09-09 10:26:23 +02:00
|
|
|
- name: set respondd vpn flag to false
|
|
|
|
when: ffmwu_server_type != "gateway"
|
|
|
|
copy:
|
|
|
|
content: "False"
|
|
|
|
dest: /home/admin/clones/mesh-announce/nodeinfo.d/vpn
|
|
|
|
notify:
|
|
|
|
- restart respondd
|
|
|
|
|
2017-10-15 10:18:26 +02:00
|
|
|
- name: write systemd unit files
|
|
|
|
template:
|
|
|
|
src: respondd.service.j2
|
|
|
|
dest: "/etc/systemd/system/respondd-{{ item.id }}.service"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- restart respondd
|
2018-09-16 12:38:33 +02:00
|
|
|
loop: "{{ meshes }}"
|
2017-10-15 10:18:26 +02:00
|
|
|
|
|
|
|
- name: configure systemd unit files
|
|
|
|
systemd:
|
|
|
|
name: "respondd-{{ item.id }}"
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2018-09-16 12:38:33 +02:00
|
|
|
loop: "{{ meshes }}"
|