summaryrefslogtreecommitdiff
path: root/roles/sshvpn/tasks/create_users_sshvpn.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/sshvpn/tasks/create_users_sshvpn.yaml
v0.0.1alphaHEADmain
Diffstat (limited to 'roles/sshvpn/tasks/create_users_sshvpn.yaml')
-rw-r--r--roles/sshvpn/tasks/create_users_sshvpn.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/sshvpn/tasks/create_users_sshvpn.yaml b/roles/sshvpn/tasks/create_users_sshvpn.yaml
new file mode 100644
index 00000000..f4b0ed68
--- /dev/null
+++ b/roles/sshvpn/tasks/create_users_sshvpn.yaml
@@ -0,0 +1,16 @@
+---
+- name: "sshvpn user management"
+ sshvpn:
+ users: "{{ all_users|default([]) + sshvpn_users|default([]) }}"
+ register: sshvpn_user_pass_dict
+ #no_log: true
+
+- name: "make temp dir"
+ ansible.builtin.file:
+ path: /var/reactance/.temp/
+ state: directory
+
+- name: "add sshvpn user password pair to dict"
+ ansible.builtin.copy:
+ content: "{{ sshvpn_user_pass_dict['msg']|default({}) | to_json }}"
+ dest: /var/reactance/.temp/sshvpn_user_pass_dict