darkwizard242.nordvpn
Ansible Role: nordvpn
This role is designed to install (by default) the nordvpn package on Debian and EL-based systems, or to uninstall it if specified.
Requirements
No special requirements.
Role Variables
You can find the available variables below (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 | The name of the nordvpn package to install, which is nordvpn by default. |
nordvpn_desired_state | The state of the nordvpn package (install, verify, or uninstall) - options: present , latest , or absent . |
nordvpn_pre_reqs_debian | Packages required by nordvpn for Debian systems. |
nordvpn_pre_reqs_debian_desired_state | The installation state for prerequisite packages. |
nordvpn_repo_debian_gpg_key_url | The GPG key URL required for nordvpn on Debian systems. |
nordvpn_repo_debian | The URL of the repository for Debian systems. |
nordvpn_repo_debian_filename | The name of the repository file to save in /etc/apt/sources.list.d/ , defaulting to the name of the package. |
nordvpn_repo_debian_desired_state | The desired state of the Debian repository file for nordvpn. |
nordvpn_add_nonroot_users | A flag to indicate if non-root users should be added to the nordvpn group. |
nordvpn_nonroot_users | A list of non-root users to be added to the nordvpn group. |
nordvpn_group | The name of the nordvpn group. |
Dependencies
None.
Example Playbook
For the default installation of the nordvpn package:
- hosts: servers
roles:
- darkwizard242.nordvpn
For updating to the latest stable version of nordvpn:
- hosts: servers
roles:
- darkwizard242.nordvpn
vars:
nordvpn_app_name: latest
For uninstalling the nordvpn package:
- hosts: servers
roles:
- darkwizard242.nordvpn
vars:
nordvpn_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installs nordvpn client on Debian-based operating systems.
Installa
ansible-galaxy install darkwizard242.nordvpn
Licenza
mit
Download
927
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!