Initial commit: Ansible role for Hysteria2 VPN server deployment.

Includes install/update/uninstall playbooks, Makefile, vault-based SSH credentials, per-server and global HTML export with QR codes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Sergey Antropoff
2026-07-01 02:02:58 +03:00
commit 47e440341a
28 changed files with 2032 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
---
# Email для Let's Encrypt (ACME)
hysteria2_acme_email: admin@example.com
# Длина автогенерируемых паролей (pwgen)
hysteria2_password_length: 40
# Обновлять систему перед установкой (apt update && apt upgrade)
hysteria2_upgrade_system: true
# Локальная папка для URL и QR-кодов (на машине, где запускается ansible-playbook)
hysteria2_output_dir: "{{ playbook_dir }}/output"
# Имя подпапки для каждого сервера (по умолчанию — inventory_hostname)
# hysteria2_output_name: "{{ inventory_hostname }}"
# Открывать output/index.html в браузере после install/update/export
# hysteria2_open_browser: true
# Порт Hysteria2
hysteria2_listen_port: 443
# Открывать порты в ufw (80/tcp, 443/tcp, 443/udp)
hysteria2_configure_firewall: true