Files
hysteria2/inventory/hosts.yml.example
T
Sergey Antropoff 47e440341a 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>
2026-07-01 02:02:58 +03:00

31 lines
1.0 KiB
Plaintext

---
all:
children:
hysteria2_servers:
hosts:
vps-de:
ansible_host: 203.0.113.10
ansible_port: 2222
ansible_user: root
# SSH-пароль root берётся из vault (см. group_vars/hysteria2_servers/vault.yml)
ansible_password: "{{ vault_ssh_passwords['vps-de'] }}"
# Альтернатива — SSH-ключ вместо пароля:
# ansible_ssh_private_key_file: ~/.ssh/id_ed25519
hysteria2_domain: vpn-de.example.com
hysteria2_users:
- my
- friend
- yet_friend
vps-nl:
ansible_host: 203.0.113.20
ansible_user: root
ansible_password: "{{ vault_ssh_passwords['vps-nl'] }}"
hysteria2_domain: vpn-nl.dynu.net
hysteria2_users:
- alice
- bob
# Свои пароли VPN-пользователей (опционально):
# hysteria2_user_passwords:
# alice: "Aingae0Okit1eek4eeZahFohVei4akee"