/Stouts.openvpn

Ansible role to install and configure OpenVPN server

Primary LanguageShellMIT LicenseMIT

Stouts.openvpn

Build Status Galaxy

Ansible role that installs an openvpn server

  • Install and setup OpenVPN server
  • Create/revoke client's configurations and certificates
  • Setup authentication with PAM (System, passwd files)

Requirements

None.

Supported platforms

  • Ubuntu 14.04
  • Ubuntu 16.04
  • Debian 8
  • Debian 9
  • Centos 7

Variables

For a complete variable reference, see the defaults/main.yml file.

Example playbook

- hosts: all
  vars:
    openvpn_use_pam: true
    openvpn_download_clients: true
    openvpn_download_dir: /home/me/Projects
    openvpn_clients: 
      - client1
      - client2
    openvpn_use_pam_users:
      - name: user1
        password: password1
      - name: user2
        password: password2
  roles:
    - Stouts.openvpn

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

...are welcome!