Remove yanic push service

This commit is contained in:
Markus 2018-01-17 14:13:24 +01:00
parent 65d1964eab
commit 2c92d4a379
3 changed files with 1 additions and 34 deletions

View File

@ -1,7 +1,7 @@
---
- name: Create users
user: name=yanic generate_ssh_key=yes ssh_key_type=rsa ssh_key_file=.ssh/id_rsa ssh_key_comment="yanic@{{inventory_hostname}}"
user: name=yanic
- name: Install yanic
shell: /usr/local/go/bin/go get -u github.com/FreifunkBremen/yanic
@ -27,17 +27,3 @@
- name: Enable yanic
service: name=yanic enabled=yes
- name: Install system publish unit
template: src={{ item }}.j2 dest=/lib/systemd/system/{{ item }}
when: yanic_publisher
with_items:
- yanic-publish.service
- yanic-publish.timer
notify:
- Reload systemd
- Restart yanic-publish
- name: Enable yanic-publish
service: name=yanic-publish.timer enabled=yes
when: yanic_publisher

View File

@ -1,10 +0,0 @@
[Unit]
Description=Publish data of yanic on downloads server
[Service]
ExecStart=/usr/bin/rsync --del -rt {{ yanic_nodes_path }}/ downloads@webserver.bremen.freifunk.net:data/yanic
User=yanic
Type=oneshot
[Install]
WantedBy=multi-user.target

View File

@ -1,9 +0,0 @@
[Unit]
Description=Publish data of yanic on downloads server every minute
[Timer]
OnBootSec=15min
OnUnitActiveSec=1min
[Install]
WantedBy=timers.target