wireguard, stash, docker debian, jellyfin

This commit is contained in:
2026-03-21 13:17:20 +01:00
parent 473e8d4a8d
commit d07446a879
18 changed files with 767 additions and 54 deletions
+4 -52
View File
@@ -1,52 +1,4 @@
- name: Create temp directory
tempfile:
state: directory
suffix: bininstall
register: temp_dir
- name: Download binary
get_url:
url: "https://github.com/stashapp/stash/releases/latest/download/stash-linux"
dest: "{{ temp_dir.path }}/stash"
mode: 0755
- name: Move binary to system path
copy:
src: "{{ temp_dir.path }}/stash"
dest: "/usr/local/bin/"
mode: 0755
remote_src: yes
- name: Copy service file
copy:
src: stash/stash.service
dest: /etc/systemd/system/
mode: 0644
- name: Stash user
user:
name: stash
system: yes
create_home: no
shell: /sbin/nologin
groups: aurbis
- name: Create config dir
file:
path: /var/lib/stash
state: directory
mode: "0755"
owner: "stash"
group: "stash"
- name: Start and enable stash service
systemd:
name: stash
state: started
enabled: yes
daemon_reload: yes
- name: Clean up temp directory
file:
path: "{{ temp_dir.path }}"
state: absent
- name: Deploy Stash
include_tasks: tasks/docker_service.yml
vars:
service_name: stash