Ansible collection to install and manage self-hosted services

388stars
30forks
Last commit: 17h ago
Repo age: 10y old
xsrv screenshot

xsrv is an Ansible-based collection of roles, playbooks and utilities designed to install, manage and run a wide range of self-hosted network services and applications on your own servers. It provides modular roles, an optional command-line controller and templates to bootstrap a single-server project quickly.

Key Features

  • Modular Ansible roles for many services (web server, mail, VPN, databases, media, collaboration and more) so components can be deployed independently.
  • Optional command-line controller with utilities for common tasks (provisioning VMs, initializing templates, applying changes and upgrades).
  • Built-in templates and example inventory to get a single-server deployment up quickly and reproducibly.
  • Integration with libvirt for automated VM provisioning and with common OS/stack tooling used on Debian-based hosts.
  • Centralized configuration via role variables and a documented list of configuration variables to control deployments and service options.
  • Role-level maintenance and upgrade procedures; guidance for TLS certificate acquisition and DNS requirements for public services.

Use Cases

  • Deploy and operate a personal or small-team self-hosted server running Nextcloud, Gitea, Matrix, Jitsi, media servers and similar applications.
  • Create reproducible lab or test environments by provisioning Debian VM templates and automated roles via libvirt/Ansible.
  • Manage ongoing maintenance, upgrades and role-based configuration for multiple Debian hosts from a single Ansible controller.

Limitations and Considerations

  • Focused on Debian-based systems: documentation and many roles assume Debian/Ubuntu packaging and tools; non-Debian platforms will require manual adaptation.
  • Requires familiarity with Ansible and SSH-based controller/host workflows; not a turnkey graphical control panel — operations are performed via playbooks and CLI tools.
  • Services and resource usage depend on installed roles; plan CPU, RAM and storage per role and follow role-specific guidance for production use.

xsrv is intended for users who prefer infrastructure-as-code and reproducible Ansible-driven deployments for self-hosting. Its modular role approach makes it suitable for incremental adoption and custom configurations.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Coolify

Coolify

Self-hosted PaaS for deploying apps, databases, and services

49.6k
3.4k
Last commit: 1d ago

Open-source, self-hostable PaaS to deploy websites, full-stack apps, databases, and Docker services on your own servers with Git-based CI/CD workflows.

Alternative to:
Heroku
Heroku
+12
Puter

Puter

Self-hostable web-based personal cloud and desktop environment

38.7k
3.4k
Last commit: 16h ago

Self-hostable internet OS that provides a web desktop, cloud storage, and an app platform for files, web apps, and remote-work style workflows.

Alternative to:
Google Drive
Google Drive
+19
CasaOS

CasaOS

Personal cloud dashboard and app store for Docker-based home servers

32.9k
1.8k
Last commit: 5mo ago

Open-source personal cloud system with a web dashboard, app store, and file management to run and manage Docker apps on home servers and SBCs.

Alternative to:
Cloudron
Cloudron
+19
Dokku

Dokku

Docker-powered PaaS for deploying apps on a single host

31.8k
2k
Last commit: 7d ago

Dokku is a self-hosted, Docker-based mini PaaS that lets you deploy Heroku-style apps via Git push, using buildpacks or Dockerfiles with plugin-managed services.

Alternative to:
Dokku Cloud
Dokku Cloud
+10
Dockge

Dockge

Web UI for managing Docker Compose stacks

21.5k
674
Last commit: 24d ago

Dockge is a self-hosted, stack-oriented manager for Docker Compose files, providing a responsive web UI to edit, deploy, update, and monitor compose.yaml stacks.

Alternative to:
Portainer Business Edition (Portainer Cloud)
Portainer Business Edition (Portainer Cloud)
+15
CapRover

CapRover

Open-source PaaS that automates Docker app deployment and web serving

14.8k
956
Last commit: 1mo ago

CapRover is an open-source platform to deploy, manage and scale apps using Docker and nginx with a web UI and CLI, automatic SSL, one-click databases and clustering suppo...

Alternative to:
Coolify Cloud
Coolify Cloud
+19