Merge branch 'main' of git.thesatelliteoflove.com:phil/ansible

Trying to fix the repo
This commit is contained in:
Phil
2026-06-30 18:00:01 -06:00
7 changed files with 57 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ subdomains:
gotify_assistant: "gotify-assistant.{{ primary_domain }}" # iGotify iOS assistant gotify_assistant: "gotify-assistant.{{ primary_domain }}" # iGotify iOS assistant
listmonk: "listmonk.{{ secondary_domain }}" # Listmonk mailing list listmonk: "listmonk.{{ secondary_domain }}" # Listmonk mailing list
dir2opds: "opds.{{ primary_domain }}" # dir2opds OPDS catalog dir2opds: "opds.{{ primary_domain }}" # dir2opds OPDS catalog
kosync: "sync.{{ primary_domain }}" # KOReader sync server
# Email domains for notifications # Email domains for notifications
email_domains: email_domains:
+1 -1
View File
@@ -4,7 +4,7 @@
service_categories: service_categories:
infrastructure: ["caddy", "authentik", "dockge"] infrastructure: ["caddy", "authentik", "dockge"]
development: ["gitea", "bytestash"] development: ["gitea", "bytestash"]
media: ["audiobookshelf", "calibre", "dir2opds", "hoarder", "manyfold"] media: ["audiobookshelf", "calibre", "dir2opds", "hoarder", "kosync", "manyfold"]
productivity: ["paperlessngx", "baikal", "syncthing", "heyform", "dawarich", "obsidian-livesync"] productivity: ["paperlessngx", "baikal", "syncthing", "heyform", "dawarich", "obsidian-livesync"]
communication: ["gotosocial", "listmonk"] communication: ["gotosocial", "listmonk"]
monitoring: ["glance", "changedetection", "appriseapi", "gotify", "cronmaster"] monitoring: ["glance", "changedetection", "appriseapi", "gotify", "cronmaster"]
@@ -9,6 +9,8 @@
ansible.builtin.apt: ansible.builtin.apt:
name: apache2-utils name: apache2-utils
state: present state: present
update_cache: true
cache_valid_time: 3600
become: true become: true
when: vault_dir2opds is defined when: vault_dir2opds is defined
+22
View File
@@ -0,0 +1,22 @@
- name: make kosync directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/stacks/kosync
- /opt/stacks/kosync/logs/app
- /opt/stacks/kosync/logs/redis
- /opt/stacks/kosync/data/redis
- name: Template out the compose file
ansible.builtin.template:
src: kosync-compose.yml.j2
dest: /opt/stacks/kosync/compose.yml
owner: root
mode: 644
- name: deploy kosync stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/kosync
files:
- compose.yml
+5 -1
View File
@@ -33,4 +33,8 @@
- name: Install dir2opds - name: Install dir2opds
import_tasks: dir2opds.yml import_tasks: dir2opds.yml
tags: dir2opds tags: dir2opds
- name: Install koreader sync server
import_tasks: kosync.yml
tags: kosync
+4
View File
@@ -118,3 +118,7 @@ opds.thesatelliteoflove.com {
reverse_proxy dir2opds:8080 reverse_proxy dir2opds:8080
} }
{% endif %} {% endif %}
sync.thesatelliteoflove.com {
reverse_proxy kosync:17200
}
@@ -0,0 +1,22 @@
---
services:
kosync:
image: koreader/kosync:latest
container_name: kosync
environment:
- ENABLE_USER_REGISTRATION=true
volumes:
- ./logs/app:/app/koreader-sync-server/logs
- ./logs/redis:/var/log/redis
- ./data/redis:/var/lib/redis
restart: unless-stopped
labels:
glance.name: KOReader Sync
glance.icon: si:book
glance.url: https://{{ subdomains.kosync }}/
glance.description: KOReader reading progress sync
mag37.dockcheck.update: true
networks:
default:
external: true
name: {{ docker.network_name }}