polychromatic

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

Ansible Role: polychromatic

Role to install (by default) polychromatic package or uninstall (if passed as var) on Ubuntu systems. Polychromatic is a frontend applicationfor customizing the functionality of Razer peripherials under GNU/Linux.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables list:

polychromatic_repo: 'ppa:polychromatic/stable'
polychromatic_repo_desired_state: present
polychromatic_repo_filename: polychromatic
polychromatic_app: polychromatic-meta
polychromatic_package_desired_state: present

Variables table:

Variable Description
polychromatic_repo Refers to the ppa repo to add.
polychromatic_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.
polychromatic_repo_filename Defined to set the repository file name for saving in /etc/apt/sources.list.d
polychromatic_app Defines the app to install i.e. polychromatic-meta
polychromatic_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 polychromatic package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.polychromatic

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

- hosts: servers
  roles:
    - darkwizard242.polychromatic
  vars:
    polychromatic_package_desired_state: latest

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

- hosts: servers
  roles:
    - darkwizard242.polychromatic
  vars:
    polychromatic_package_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad.

About

For dynamically installing or uninstalling 'polychromatic' package.

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