summaryrefslogtreecommitdiff
path: root/roles/sshvpn/tasks/create_users_sshvpn.yaml
diff options
context:
space:
mode:
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