openrazer

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: openrazer

Role to install (by default) openrazer-meta package or uninstall (if passed as var) on Ubuntu systems for supporting Razer products drivers and customization on Ubuntu systems.

Requirements

None.

Role Variables

Available variables are listed below (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 Refers to the ppa repo to add.
openrazer_repo_desired_state Defined to dynamically chose whether to add/keep (i.e. present) or remove (i.e. absent) the repository file list from /etc/apt/sources.list.d.
openrazer_repo_filename Defined to set the repository file name for saving in /etc/apt/sources.list.d
openrazer_app Defines the app to install i.e. openrazer-meta
openrazer_package_desired_state Defined to dynamically chose whether to install (i.e. either present or latest) or uninstall (i.e. absent) the package. Default is set to present.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of openrazer package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.openrazer

For customizing behavior of role (i.e. installation of latest openrazer package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.openrazer
  vars:
    openrazer_package_desired_state: latest

For customizing behavior of role (i.e. un-installation of openrazer package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.openrazer
  vars:
    openrazer_package_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad.

About

To dynamically installing or uninstalling 'openrazer-meta' package for support of Razer products on Ubuntu systems.

Install
ansible-galaxy install darkwizard242/ansible-role-openrazer
GitHub repository
License
mit
Downloads
5343
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!