https://github.com/darkwizard242/ansible-role-openvpn
Ansible role for Openvpn. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-openvpn
ansible ansible-galaxy ansible-role linux openvpn openvpn-client openvpn-installer system
Last synced: 4 months ago
JSON representation
Ansible role for Openvpn. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-openvpn
- Owner: darkwizard242
- License: mit
- Created: 2020-05-02T04:35:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T01:22:33.000Z (12 months ago)
- Last Synced: 2024-12-28T02:05:09.072Z (6 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, linux, openvpn, openvpn-client, openvpn-installer, system
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/openvpn
- Size: 44.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/darkwizard242/ansible-role-openvpn/actions?query=workflow%3Abuild-and-test) [](https://github.com/darkwizard242/ansible-role-openvpn/actions?query=workflow%3Arelease)  [](https://sonarcloud.io/dashboard?id=ansible-role-openvpn) [](https://sonarcloud.io/dashboard?id=ansible-role-openvpn) [](https://sonarcloud.io/dashboard?id=ansible-role-openvpn)  
# Ansible Role: openvpn
Role to install (_by default_) [openvpn](https://openvpn.net/) 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:
```yaml
openvpn_app: openvpn
openvpn_desired_state: present
```### Variables 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.
```yaml
- hosts: servers
roles:
- darkwizard242.openvpn
```For customizing behavior of role (i.e. installation of latest **openvpn** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.openvpn
vars:
openvpn_desired_state: latest
```For customizing behavior of role (i.e. un-installation of **openvpn** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.openvpn
vars:
openvpn_desired_state: absent
```## License
[MIT](https://github.com/darkwizard242/ansible-role-openvpn/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).