darkwizard242.openrazer
Ansible Role: openrazer
This role installs the openrazer-meta package by default, or uninstalls it if specified, on Ubuntu systems. This package supports drivers and customization for Razer products.
Requirements
No special requirements.
Role Variables
The following variables can be used (located in defaults/main.yml
):
Variables list:
openrazer_repo: 'ppa:openrazer/stable'
openrazer_repo_desired_state: present
openrazer_repo_filename: openrazer
openrazer_app: openrazer-meta
openrazer_package_desired_state: present
Variables table:
Variable | Description |
---|---|
openrazer_repo |
The PPA repository to add. |
openrazer_repo_desired_state |
Determines whether to add/keep (i.e. present ) or remove (i.e. absent ) the repository from /etc/apt/sources.list.d . |
openrazer_repo_filename |
Specifies the name of the repository file to save in /etc/apt/sources.list.d . |
openrazer_app |
The application to install, specifically openrazer-meta. |
openrazer_package_desired_state |
Determines whether to install (i.e. present or latest ) or uninstall (i.e. absent ) the package. The default is present . |
Dependencies
No dependencies.
Example Playbook
Here’s an example of how to use the role in Ansible playbooks:
Default Installation
To install the openrazer package by default:
- hosts: servers
roles:
- darkwizard242.openrazer
Latest Installation
To customize the role to install the latest openrazer package:
- hosts: servers
roles:
- darkwizard242.openrazer
vars:
openrazer_package_desired_state: latest
Uninstallation
To customize the role to uninstall the openrazer package:
- hosts: servers
roles:
- darkwizard242.openrazer
vars:
openrazer_package_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
To dynamically installing or uninstalling 'openrazer-meta' package for support of Razer products on Ubuntu systems.
Installa
ansible-galaxy install darkwizard242.openrazer
Licenza
mit
Download
5.6k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!