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.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
---
|
||||
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"
|
||||
Reference in New Issue
Block a user