diff options
| author | repliqa <sarzilhossain@proton.me> | 2025-07-23 14:06:15 +0600 |
|---|---|---|
| committer | repliqa <sarzilhossain@proton.me> | 2025-07-23 14:06:15 +0600 |
| commit | 69acb7a82a68eeb439e55b994281056df52c81b1 (patch) | |
| tree | 7c6a53694e11511a3014470c213255a503f9c95e /roles/sshvpn/tasks/create_users_sshvpn.yaml | |
Diffstat (limited to 'roles/sshvpn/tasks/create_users_sshvpn.yaml')
| -rw-r--r-- | roles/sshvpn/tasks/create_users_sshvpn.yaml | 16 |
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 |
