infra/roles/stable/goploader/tasks/main.yml

38 lines
718 B
YAML
Raw Normal View History

2020-10-03 01:51:19 +02:00
---
- name: ensure goploader user is present
user:
name: "goploader"
home: "/srv/goploader"
shell: "/bin/bash"
state: present
- name: Download Goploader
get_url:
2020-11-11 14:44:20 +01:00
url: https://github.com/Depado/goploader/releases/download/v1.0/server_amd64.tar.gz
2020-10-03 01:51:19 +02:00
dest: /srv/goploader/server.tgz
become: true
become_user: goploader
- name: Unarchive goploader
unarchive:
src: /srv/goploader/server.tgz
2020-10-03 21:34:11 +02:00
remote_src: yes
2020-10-03 01:51:19 +02:00
dest: /srv/goploader
owner: goploader
group: goploader
- name: Template systemd service
template:
src: goploader.service
dest: /etc/systemd/system/goploader.service
owner: root
group: root
mode: 0644
notify:
- Restart goploader