DA
darkwizard242/ansible-role-openvpn
Ansible role for Openvpn. Available on Ansible Galaxy.
Ansible Role: openvpn
Role to install (by default) openvpn package or uninstall (if passed as var) on Debian family and EL family systems.
Requirements
None.
Role Variables
Available variables are listed below (located in defaults/main.yml):
Variables list:
openvpn_app: openvpn
openvpn_desired_state: presentVariables table:
| Variable | Description |
|---|---|
| openvpn_app | Defines the app to install i.e. openvpn |
| openvpn_desired_state | Defined to dynamically chose whether to install (i.e. either present or latest) or uninstall (i.e. absent) the package. Defaults to present. |
Dependencies
None
Example Playbook
For default behaviour of role (i.e. installation of openvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openvpnFor customizing behavior of role (i.e. installation of latest openvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openvpn
vars:
openvpn_desired_state: latestFor customizing behavior of role (i.e. un-installation of openvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openvpn
vars:
openvpn_desired_state: absentLicense
Author Information
This role was created by Ali Muhammad.
On this page
Languages
Python100.0%
Contributors
MIT License
Created May 2, 2020
Updated June 29, 2024