From 2c92d4a379b0a8bd91bfcdb38b024d76387d6ed7 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 17 Jan 2018 14:13:24 +0100 Subject: [PATCH] Remove yanic push service --- roles/yanic/tasks/main.yml | 16 +--------------- roles/yanic/templates/yanic-publish.service.j2 | 10 ---------- roles/yanic/templates/yanic-publish.timer.j2 | 9 --------- 3 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 roles/yanic/templates/yanic-publish.service.j2 delete mode 100644 roles/yanic/templates/yanic-publish.timer.j2 diff --git a/roles/yanic/tasks/main.yml b/roles/yanic/tasks/main.yml index 5b8cdce..b76097c 100644 --- a/roles/yanic/tasks/main.yml +++ b/roles/yanic/tasks/main.yml @@ -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 diff --git a/roles/yanic/templates/yanic-publish.service.j2 b/roles/yanic/templates/yanic-publish.service.j2 deleted file mode 100644 index fc186df..0000000 --- a/roles/yanic/templates/yanic-publish.service.j2 +++ /dev/null @@ -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 diff --git a/roles/yanic/templates/yanic-publish.timer.j2 b/roles/yanic/templates/yanic-publish.timer.j2 deleted file mode 100644 index 6d1267a..0000000 --- a/roles/yanic/templates/yanic-publish.timer.j2 +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Publish data of yanic on downloads server every minute - -[Timer] -OnBootSec=15min -OnUnitActiveSec=1min - -[Install] -WantedBy=timers.target