An Ansible role for managing Proton VPN installations.
This role requires the Ansible collection community.general to be installed on the system.
This role requires the python package jsonschema to be installed on the system.
pip install jsonschemaBefore the role can be used it needs to be added to the machine running the playbook, and as of writing this, this role is not hosted on Ansible-Galaxy only on Github.
-
Create a requirements.yml file in the root directory of the playbook being worked on.
-
Add the following definition inside the requirements.yml file:
roles:
- name: hth-protonvpn
src: https://github.com/hrafnthor/ansible-proton-vpn.git
scm: git
collections:
- name: community.general- Install the requirements by executing
ansible-galaxy install -r .requirements.ymlThis will allow any playbook run from this machine to use the role hth-protonvpn
The role listens to the following inputs:
protonvpn:
remove: [bool] Indicates if the client and repository information should be removed. Defaults to false.
gather_facts: [bool] Indicates that the role should gather facts before attempting to make any changes. Defaults to true
systray: [bool] Indicates that dependencies for Gnome system tray display should be installed. Defaults to false.
version:
name: [string] The numerical name of the version repository package to install
checksum: [string] The checksum of the package.The checksum can be found on ProtonVPN's own webpage here.
protonvpn:
remove: false
gather_facts: true
systray: true
version:
name: "1.0.8"
checksum: "0b14e71586b22e498eb20926c48c7b434b751149b1f2af9902ef1cfe6b03e180"Apache 2.0. See attached license file.
Hrafn Thorvaldsson.