Skip to content

Releases: logan2211/ansible-openvpn

v1.0 ansible-openvpn

05 May 21:57
Compare
Choose a tag to compare

Support for var-based client and server configuration overrides. This allows deployers to take full advantage of OpenVPN's configuration flexibility by modifying the openvpn_server_config_overrides or openvpn_client_config_overrides dicts in the upstream vars. Please see the defaults/main.yml file for a full list of the default configuration variables deployed.

One example of a common override is to push DNS servers to the VPN clients. This could be done like:

openvpn_server_config_overrides:
  # Add additional vars that are not in the base configuration
  push:
    - '"dhcp-option DNS 8.8.8.8"'
    - '"dhcp-option DNS 8.8.4.4"'
  # Override a var that is defined in the base config with a different setting
  keepalive: '10 60'
  # Un-set a variable that is defined in the base config
  comp-lzo: []