summaryrefslogtreecommitdiff
path: root/roles/hysteria/tasks/create_users_hysteria.yaml
diff options
context:
space:
mode:
authorrepliqa <sarzilhossain@proton.me>2025-07-23 14:06:15 +0600
committerrepliqa <sarzilhossain@proton.me>2025-07-23 14:06:15 +0600
commit69acb7a82a68eeb439e55b994281056df52c81b1 (patch)
tree7c6a53694e11511a3014470c213255a503f9c95e /roles/hysteria/tasks/create_users_hysteria.yaml
v0.0.1alphaHEADmain
Diffstat (limited to 'roles/hysteria/tasks/create_users_hysteria.yaml')
-rw-r--r--roles/hysteria/tasks/create_users_hysteria.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/hysteria/tasks/create_users_hysteria.yaml b/roles/hysteria/tasks/create_users_hysteria.yaml
new file mode 100644
index 00000000..a6881413
--- /dev/null
+++ b/roles/hysteria/tasks/create_users_hysteria.yaml
@@ -0,0 +1,13 @@
+---
+- name: "hysteria user management"
+ hysteria:
+ users: "{{ all_users|default([]) + hysteria_users|default([]) }}"
+ register: hysteria_user_pass_dict
+ no_log: true
+ notify:
+ - restart_hysteria
+
+- name: "add hysteria user password pair to dict"
+ set_fact:
+ user_pass_dict: "{{ user_pass_dict|default({}) | combine(hysteria_user_pass_dict['msg'], recursive=true, list_merge='append') }}"
+ no_log: true