Role to install (by default) openvpn package or uninstall (if passed as var) on Debian family and EL family systems.
None.
Available variables are listed below (located in defaults/main.yml
):
openvpn_app: openvpn
openvpn_desired_state: present
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 . |
None
For default behaviour of role (i.e. installation of openvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openvpn
For customizing behavior of role (i.e. installation of latest openvpn package) in ansible playbooks.
- 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.
- hosts: servers
roles:
- darkwizard242.openvpn
vars:
openvpn_desired_state: absent
This role was created by Ali Muhammad.