GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AlenHay/remnawave-vpn-ansible: Ansible automation for a fleet of Remnawave VPN nodes: Xray VLESS + XHTTP + REALITY behind a self-hosted decoy site.

This repository was archived by the owner on Oct 27, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
inventory.example
inventory.example
 
 
playbooks
playbooks
 
 
roles
roles
 
 
templates
templates
 
 
tests
tests
 
 
.ansible-lint
.ansible-lint
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.yamllint
.yamllint
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
ansible-run
ansible-run
 
 
ansible.cfg
ansible.cfg
 
 
codenames.yml
codenames.yml
 
 
deploy
deploy
 
 
new-node
new-node
 
 
provision
provision
 
 

Repository files navigation

remnawave-vpn-ansible

Ansible automation for a fleet of Remnawave VPN nodes: provision a bare VPS, harden it, stand up Xray with VLESS + XHTTP + REALITY behind a decoy website, register everything with the panel, and keep the whole fleet reconciled from one place.

It ran a small production fleet for a couple of years. It is opinionated — every playbook is idempotent, every rollout goes through a canary first, and almost nothing is done by hand.

What it does

Provision One command from a fresh VPS to a registered, serving node: users, SSH keys, hardening, Docker, BBR, swap, UFW, fail2ban.
Serve Xray (remnanode) with VLESS + XHTTP + REALITY, fronted by an Angie web server that demultiplexes TCP/443 by SNI and ALPN. Wrong-SNI traffic gets a real, plausible website.
Register Reconciles config profiles, node registration, host entries and squads against the Remnawave panel API. Reality keys are generated once and preserved across runs.
Deliver Optional subscription relay: nodes can front the subscription origin so clients never resolve the panel.
Observe Prometheus agent per node, remote-writing to your Prometheus, plus a fleet alert rule set.
Egress Optional Cloudflare WARP egress for a configurable domain list.
Retire decommission.yml unwinds a node from the panel, DNS, and your inventory.

Quick start

git clone https://github.com/<you>/remnawave-vpn-ansible.git
cd remnawave-vpn-ansible

cp -r inventory.example inventory
cp inventory/group_vars/all/vault.yml.example inventory/group_vars/all/vault.yml
$EDITOR inventory/group_vars/all/vars.yml     # domains, panel URL, SSH keys
$EDITOR inventory/group_vars/all/vault.yml    # API tokens
ansible-vault encrypt inventory/group_vars/all/vault.yml

./new-node aurora 203.0.113.10 HEL FI 🇫🇮 Helsinki
./provision aurora key

inventory/ is gitignored — your real fleet never lands in this repo. See docs/getting-started.md for the full walkthrough.

Documentation

  • Getting started — prerequisites, first node, what to expect.
  • Architecture — how a request reaches Xray, and why the decoy site exists.
  • Inventory reference — every variable, what it controls, what validation enforces.
  • Secrets — the vault, what is in it, how to rotate it.
  • Operations — the playbook catalogue and the canary-first rollout discipline.
  • Subscription relay — DNS, certificates, and the smoke check.
  • CI — the lint lane everyone gets, and the optional ops lanes.

Requirements

  • A Remnawave panel you administer, and an API token.
  • Debian 12 (bookworm) nodes with root or a sudo-capable bootstrap user.
  • Docker on your workstation — ./ansible-run executes everything in a pinned toolchain image, so the only thing you install locally is Docker. Or set VPN_ANSIBLE_HOSTED=true and use your own ansible-core 2.21.
  • A Cloudflare-hosted zone, if you want managed DNS or the subscription relay.

Layout

ansible-run          run any ansible command in the pinned toolchain image
provision            bare VPS -> fully configured, registered node
new-node             scaffold a host_vars file with validated fields
deploy               canary -> verify -> prompt -> fleet
codenames.yml        the node-name ledger
inventory.example/   template inventory; copy to inventory/
playbooks/           one playbook per concern; _-prefixed ones are includes
roles/               common, selfsteal, warp, prometheus_agent/_rules, remnawave_panel
templates/           mihomo subscription templates pushed to the panel (see its README)
tests/               render-and-validate checks that run in CI

Status

Archived-but-working: the fleet it managed has been shut down, so it is published as-is under the MIT licence for anyone who wants to run the same shape of infrastructure. Pinned image digests and upstream API expectations are frozen at the time of the last production run — read docs/operations.md before pointing it at live users.

Credits

The mihomo subscription templates in templates/ are based on the configs and routing rules published by Davoyan/mihomo-rule-sets, and load rule sets at runtime from that project, MetaCubeX/meta-rules-dat, legiz-ru/mihomo-rule-sets and itdoginfo/allow-domains. See templates/README.md for the per-source breakdown.

Built on Remnawave, Xray-core, mihomo and Angie.

Licence

MIT for the automation in this repo. The referenced rule sets are not vendored here and remain under their own terms — see above.

About

Ansible automation for a fleet of Remnawave VPN nodes: Xray VLESS + XHTTP + REALITY behind a self-hosted decoy site.

Resources

Readme
MIT license

Security policy

Security policy
Activity

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.