forked from FF-RGB/ansible
Remove yanic push service
This commit is contained in:
parent
65d1964eab
commit
2c92d4a379
@ -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
|
||||
|
@ -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
|
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=Publish data of yanic on downloads server every minute
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=1min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user