From 69acb7a82a68eeb439e55b994281056df52c81b1 Mon Sep 17 00:00:00 2001 From: repliqa Date: Wed, 23 Jul 2025 14:06:15 +0600 Subject: v0.0.1alpha --- roles/sshvpn/tasks/check_sshvpn_exists.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/sshvpn/tasks/check_sshvpn_exists.yaml (limited to 'roles/sshvpn/tasks/check_sshvpn_exists.yaml') diff --git a/roles/sshvpn/tasks/check_sshvpn_exists.yaml b/roles/sshvpn/tasks/check_sshvpn_exists.yaml new file mode 100644 index 00000000..3939f2d8 --- /dev/null +++ b/roles/sshvpn/tasks/check_sshvpn_exists.yaml @@ -0,0 +1,12 @@ +--- +- name: "Check if sshvpn is already installed" + ansible.builtin.stat: + path: /home/sshvpn + register: sshvpn_directory + +- name: "Setup sshvpn if directory doesn't exist" + ansible.builtin.include_tasks: setup_sshvpn.yaml + when: sshvpn_directory.stat.exists == false + +- name: "Create sshvpn users" + ansible.builtin.include_tasks: create_users_sshvpn.yaml -- cgit v1.2.3