No description
  • TypeScript 74.1%
  • Shell 21.1%
  • Jinja 3.6%
  • Just 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
egoreast 4dc9f88e1f
All checks were successful
CI / remote (push) Successful in 1m9s
CI / local (push) Has been skipped
CI / lint GitHub-hosted checks passed
CI / gate (push) Successful in 2s
chore: change opencode agents default model
2026-12-02 14:00:19 +03:00
.claude chore: sync .opencode/.claude config from mobile template 2026-11-06 13:29:47 +03:00
.forgejo/workflows Merge branch 'main' into renovate/ubuntu-26.x 2026-12-02 09:47:01 +00:00
.github/workflows chore(deps): update dependency node to v26 2026-12-02 09:37:17 +00:00
.opencode chore: change opencode agents default model 2026-12-02 14:00:19 +03:00
.specify chore: add agent instructions, workflow skills and spec-kit scaffolding 2026-10-31 13:36:14 +03:00
actions/checks Merge branch 'main' into renovate/actions-setup-python-7.x 2026-12-02 09:45:07 +00:00
docs docs(mirrors): document owner-bearing mirror URL variables 2026-11-04 21:21:08 +03:00
examples docs(vars): document devture_systemd_docker_base_ipv6_enabled 2026-09-15 22:46:12 +03:00
group_vars/slovo_servers fix(postgres): create managed xprem DB from template0 on legacy clusters 2026-10-24 23:16:50 +03:00
roles Merge branch 'main' into renovate/pgsty-silo-2026.x 2026-12-02 09:43:57 +00:00
scripts/ci feat(ci): live run link in remote job (port from mobile) 2026-11-11 11:58:22 +03:00
.ansible-lint ci: add lint/dry-run workflow and declare missing collections 2026-09-15 16:33:42 +03:00
.gitattributes chore: gitattributes eol for opencode tools 2026-10-31 14:02:00 +03:00
.gitignore ci: add lint/dry-run workflow and declare missing collections 2026-09-15 16:33:42 +03:00
.yamllint ci: add lint/dry-run workflow and declare missing collections 2026-09-15 16:33:42 +03:00
AGENTS.md docs: run full verification once as a dedicated final task 2026-11-11 19:53:27 +03:00
ansible.cfg add: ansible.cfg with sensible defaults for the playbook 2026-08-03 17:16:35 +03:00
CLAUDE.md chore: add agent instructions, workflow skills and spec-kit scaffolding 2026-10-31 13:36:14 +03:00
justfile feat(slovo-xprem): add self-hosted Expo OTA server role 2026-10-24 19:02:26 +03:00
README.md docs: add the Forgejo variables and secrets registry 2026-10-26 23:50:05 +03:00
renovate.json ci(renovate): track pgsty/silo instead of minio/minio 2026-11-03 09:46:26 +03:00
requirements.yml chore(deps): update dependency docker to v8.0.1 2026-12-02 09:36:44 +00:00
setup.yml feat(slovo-xprem): add self-hosted Expo OTA server role 2026-10-24 19:02:26 +03:00

slovo-propovedi-playbook

Ansible playbook for deploying the slovo-propovedi infrastructure services (PostgreSQL, PgBouncer, MinIO, xprem OTA update server, Adminer, Traefik).

This playbook follows the matrix-docker-ansible-deploy pattern: every service runs in a Docker container managed by systemd, with Traefik as the reverse proxy in front of everything.

It provisions shared infrastructure only. The applications (backend API, admin SPA, docs site, landing site, mobile web app) deploy themselves from their own repositories via scripts/vps-deploy.sh on a v* tag, and expect this playbook to have run against the host first. See Deploying the applications.

Features

  • PostgreSQL 18.4 — primary database
  • PgBouncer — connection pooling in front of PostgreSQL
  • MinIO — S3-compatible object storage
  • xprem — self-hosted Expo OTA update server (control plane + local storage)
  • Adminer — web-based database administration
  • Traefik — reverse proxy with automatic Let's Encrypt certificates
  • systemd-managed containers — each service runs as its own systemd unit

Prerequisites

  • Ansible 2.16+ on the control machine
  • just — the command runner used by the justfile (see just). If you don't have it, you can run the raw ansible-playbook commands instead (see the note in the quick start below)
  • Docker on the target host
  • Python 3 with the bcrypt module on the target host (required for admin user seeding)

Quick start

  1. Clone this repository:

    git clone <your-repo-url> slovo-propovedi-playbook
    cd slovo-propovedi-playbook
    
  2. Install the Galaxy roles:

    just roles
    
  3. Create your configuration file:

    mkdir -p inventory/host_vars/<your-host>
    cp examples/vars.yml inventory/host_vars/<your-host>/vars.yml
    

    Then open inventory/host_vars/<your-host>/vars.yml and fill in your domain names and secrets.

  4. Create your inventory file:

    cp examples/hosts inventory/hosts
    

    Then edit inventory/hosts and add your server to the [slovo_servers] group.

  5. Run the playbook to set everything up and start the services:

    just setup-all
    
  6. Create the admin user (run separately, after the services are up):

    just ensure-admin-user
    

Note

All commands above use just (see the justfile — run just to list the available recipes). If you don't have just installed, you can run the same steps with Ansible directly:

ansible-galaxy role install -r requirements.yml -p roles/galaxy
ansible-galaxy collection install -r requirements.yml
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start
ansible-playbook -i inventory/hosts setup.yml --tags=ensure-slovo-users-created

Documentation

License

AGPL-3.0