summaryrefslogtreecommitdiff
path: root/roles/install_mesh-announce/tasks
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2022-01-22 23:18:36 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2022-01-22 23:18:36 +0100
commit4d3268b80b55e227a1a89515842cbaaa8a13d788 (patch)
treee7b85a5214614c5dcb7c999f56c0b369011b50d3 /roles/install_mesh-announce/tasks
parentfb0dbf28a0e7979050858256d2040d734b282afe (diff)
loppermann1
Diffstat (limited to 'roles/install_mesh-announce/tasks')
-rw-r--r--roles/install_mesh-announce/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/install_mesh-announce/tasks/main.yml b/roles/install_mesh-announce/tasks/main.yml
index 50c5175..d4591cf 100644
--- a/roles/install_mesh-announce/tasks/main.yml
+++ b/roles/install_mesh-announce/tasks/main.yml
@@ -6,20 +6,24 @@
- lsb-release
- ethtool
state: present
+ when: sites | length > 0
- name: clone mesh-announce repo
git:
repo: https://github.com/FreifunkMYK/mesh-announce.git
dest: /opt/mesh-announce
+ when: sites | length > 0
- name: create respondd service
template:
src: respondd.service.j2
dest: /etc/systemd/system/respondd.service
mode: 0644
+ when: sites | length > 0
- name: start and enable respondd service
systemd:
name: respondd
state: started
enabled: yes
+ when: sites | length > 0