nordvpn
Ansible Role: nordvpn
Role to install (by default) nordvpn package for Debian based and EL based systems or uninstall (if passed as var) on Debian based and EL based systems.
Requirements
None.
Role Variables
Available variables are listed below (located in defaults/main.yml
):
Variables List:
# Generic Variables
nordvpn_app_name: nordvpn
nordvpn_desired_state: present
# Debian Family Variables
nordvpn_pre_reqs_debian:
- gnupg2
nordvpn_pre_reqs_debian_desired_state: present
nordvpn_repo_debian_gpg_key_url: "https://repo.nordvpn.com/gpg/nordvpn_public.asc"
nordvpn_repo_debian: "deb https://repo.nordvpn.com//deb/nordvpn/debian stable main"
nordvpn_repo_debian_filename: "{{ nordvpn_app_name }}"
nordvpn_repo_debian_desired_state: present
# User specific:
nordvpn_add_nonroot_users: false
nordvpn_nonroot_users:
- darkwizard242
- ubuntu
nordvpn_group: nordvpn
Variables table:
Variable | Description |
---|---|
nordvpn_app_name | Name of nordvpn package to install by default i.e. nordvpn . |
nordvpn_desired_state | State of the nordvpn_app_name package (i.e. nordvpn package itself.). Whether to install, verify if available or to uninstall (i.e. ansible apt module values: present , latest , or absent ) |
nordvpn_pre_reqs_debian | Package required by nordvpn on Debain based systems. |
nordvpn_pre_reqs_debian_desired_state | State of the nordvpn_pre_reqs_debian_desired_state packages. Whether to install, verify if available or to uninstall (i.e. ansible apt module values: present , latest , or absent ) |
nordvpn_repo_debian_gpg_key_url | nordvpn GPG required on Debian based systems. |
nordvpn_repo_debian | Repository URL for Debian based systems. |
nordvpn_repo_debian_filename | Name of the repository file that will be stored at /etc/apt/sources.list.d/ on Debian based systems. Defaults to the variable value for "{{ nordvpn_app_name }}" which is nordvpn by default. |
nordvpn_repo_debian_desired_state | State of Debian family repository file for nordvpn. |
nordvpn_add_nonroot_users | Boolean to declare whether to add non-root users to nordvpn group. |
nordvpn_nonroot_users | List of users to add to nordvpn group. |
nordvpn_group | Group name of nordvpn |
Dependencies
None
Example Playbook
For default behaviour of role (i.e. installation of nordvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.nordvpn
For customizing behavior of role (for e.g. update to latest available stable version, nordvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.nordvpn
vars:
nordvpn_app_name: latest
For customizing behavior of role (for e.g. un-installation of nordvpn package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.nordvpn
vars:
nordvpn_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Install
ansible-galaxy install darkwizard242/ansible-role-nordvpn
License
mit
Downloads
634
Owner
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!