Skip to content

javascriptizer1/ansible-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible VPN Playbook

Ansible License

This Ansible playbook automates the setup of a VPN (Virtual Private Network) server. You can use it to quickly deploy a VPN server for secure and private network connections.

Table of Contents

Prerequisites

Before using this playbook, ensure that you have the following prerequisites in place:

  • Ansible installed on your local machine.

Usage

  1. Clone this repository to your local machine:

    git clone https://github.com/javascriptizer1/ansible-vpn.git
  2. Navigate to the playbook directory:

    cd ansible-vpn
  3. Edit the inventory.ini file to define your target hosts.

  4. Customize the defaults/main.yaml file to configure your VPN settings.

  5. Run the playbook using the following command:

    ansible-playbook -i inventories/inventory.ini -l vpn playbook.yaml --diff -v -vvvv

Follow the prompts and provide any additional information required during the playbook execution.

Once the playbook completes, your VPN server should be up and running.

Configuration

You can customize your VPN setup by editing the defaults/main.yaml file. Here are some of the parameters you can configure:

  • VPN server type (OpenVPN, WireGuard, etc.)
  • VPN server port
  • DNS server settings
  • VPN client settings
  • Additional server hardening options

License

None