asc.core.services_ovpn role – Deploy the OpenVPN server and its client-profile portal
Note
This role is part of the asc.core collection (version 2.0.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/core $HOME/.ansible/collections/ansible_collections/asc/core.
To use it in a playbook, specify: asc.core.services_ovpn.
Entry point main – Deploy the OpenVPN server and its client-profile portal
New in asc.core 1.0.0
Synopsis
Deploys an OpenVPN server together with a small web portal that hands out client profiles, giving users VPN access into the environment’s networks.
Authentication is Microsoft Entra ID SSO performed at connect time, so MFA is whatever Conditional Access enforces; access is granted only to the
users.csvemail addresses tagged for the VPN.The Azure SDK used for the Key Vault lookup is isolated in a virtualenv, as Ubuntu 24.04 is PEP 668 externally-managed.
Parameters
Parameter |
Comments |
|---|---|
‘services_ovpn’ role configuration |
|
Display name of the application to register in Azure AD Default: |
|
Whether to enable the role Choices:
|
|
Device to use for OpenVPN Choices:
|
|
Netmask to use for OpenVPN Default: |
|
Port to use for OpenVPN Default: |
|
Protocol to use for OpenVPN Choices:
|
|
Subnet to use for OpenVPN Default: |
|
List of owners of the application to register in Azure AD (email addresses) Default: |
|
Setting this to true will force all traffic to go through the VPN Default: |
|
Whether to use the OpenVPN server as DNS server. If set to ‘true’, the clients will receive the configuration to use the OpenVPN server as DNS server. This provides the ability to resolve internal Azure resources. Choices:
|
|
Name of the VM to deploy Default: |
|
Size of the VM to deploy (Azure VM size) Default: |
|
Virtualenv holding the Azure SDK on the OpenVPN host (Ubuntu 24.04 is PEP 668 externally-managed, so it cannot be installed system-wide). Default: |
|
Version of openvpn-auth-oauth2 to install Default: |