Install and configure OpenVPN Server ansible role
Available for Ubuntu 22.04 LTS
openvpn_server
├── README.md
├── files
│   └── make_config.sh
├── tasks
│   └── main.yml
├── templates
│   ├── before.rules.j2
│   ├── client.conf.j2
│   ├── server.conf.j2
│   └── ufw.j2
└── vars
    └── main.yml
Previously you should configure PKI for certficate generation and exchange necessary certificates each other.
openvpn_server:
  local_address: local option value (openvpn server config file)
  local_easy_rsa_path: path to easyrsa launch directory
  config_path: path to openvpn server config files
  dh_param: diffie-helman option value (openvpn server config file)
  port: connection port option value (openvpn server config file)
  proto: transport protocol option value: tcp or udp (openvpn server config file)
  cipher_mode: cipher-mode option value (openvpn server config file)
- hosts: server
  roles:
     - openvpn_server