Files
hysteria2/roles/hysteria2/tasks/validate.yml
T
Sergey Antropoff 6f96a26bed 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.
2026-07-01 02:02:58 +03:00

18 lines
595 B
YAML

---
- name: Validate required variables
ansible.builtin.assert:
that:
- hysteria2_domain | length > 0
- hysteria2_acme_email | length > 0
- hysteria2_users | length > 0
fail_msg: |
Задайте для каждого хоста:
hysteria2_domain — домен с A-записью на IP сервера
hysteria2_users — список имён пользователей, например [my, friend]
И в group_vars/all.yml:
hysteria2_acme_email — email для Let's Encrypt
tags:
- install
- update
- export