summaryrefslogtreecommitdiff
path: root/roles/sshvpn/tasks/check_sshvpn_exists.yaml
blob: 3939f2d8e6a188dac8cd1692fc0198a3d2fd848e (plain)
1
2
3
4
5
6
7
8
9
10
11
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