Tan4ek / get-your-vpn-ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get-your-vpn-ansible

What is it?

Ansible playbook to install get-your-vpn on system via ssh.

On target machine will be installed:

All application are installed using docker and docker-compose.

Preparation

  1. Install ansible on local machine
  2. Install ansible dependencies on local machine ansible-galaxy install -r requirements.yml
  3. Prepare ansible-inventory, variables and secrets.
    • cp -r inventory-example inventory
    • set host where will be installed get-your-vpn to inventory/hosts file.
    • edit inventory/group_vars/all.yml, change variables (specially openvpn_private_key)
  4. Login on target machine (where you will install get-your-vpn), install docker, install docker-compose. Or you can install docker & docker-compose via ansible ansible-playbook --private-key=~/.ssh/local-ubuntu-server -i=inventory --user=fuck-rkn --become -K install-docker.yml

Run installation

ansible-playbook --private-key={{ path to ssh key for server }} -i=inventory --user={{ ssh user }} --become -K deploy-application.yml

After installation

  1. Check docker containers docker ps -f name=get-your-vpn.
  2. If openvpn not initialized (first run) follow this manual. Use password for primary key from openvpn_private_key config.

What needs to install manually

Install frontend for invite link and vpn provider manager.

About

License:MIT License


Languages

Language:Jinja 100.0%