{"id":15878986,"url":"https://github.com/darkwizard242/ansible-role-polychromatic","last_synced_at":"2026-04-10T17:04:22.373Z","repository":{"id":43879876,"uuid":"205949321","full_name":"darkwizard242/ansible-role-polychromatic","owner":"darkwizard242","description":"Ansible role for Polychromatic. Available on Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2024-05-14T02:55:03.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T15:33:13.052Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","keyboard","linux","razer","ui"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/polychromatic","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkwizard242.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-02T23:07:12.000Z","updated_at":"2024-05-14T02:54:08.000Z","dependencies_parsed_at":"2024-05-13T19:27:47.505Z","dependency_job_id":"95c8101a-1981-4551-a727-e287a2e267f3","html_url":"https://github.com/darkwizard242/ansible-role-polychromatic","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-polychromatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-polychromatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-polychromatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-polychromatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-polychromatic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246730260,"owners_count":20824396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","keyboard","linux","razer","ui"],"created_at":"2024-10-06T02:42:41.076Z","updated_at":"2025-12-30T23:12:54.353Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-polychromatic/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-polychromatic/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-polychromatic/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-polychromatic/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/polychromatic) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-polychromatic\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-polychromatic) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-polychromatic\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-polychromatic) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-polychromatic\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-polychromatic) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-polychromatic?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-polychromatic?color=orange\u0026style=flat-square)\n\n# Ansible Role: polychromatic\n\nRole to install (_by default_) polychromatic package or uninstall (_if passed as var_) on **Ubuntu** systems. [Polychromatic](https://polychromatic.app) is a frontend applicationfor customizing the functionality of Razer peripherials under GNU/Linux.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below (located in `defaults/main.yml`):\n\n### Variables list:\n\n```yaml\npolychromatic_repo: 'ppa:polychromatic/stable'\npolychromatic_repo_desired_state: present\npolychromatic_repo_filename: polychromatic\npolychromatic_app: polychromatic-meta\npolychromatic_package_desired_state: present\n```\n\n### Variables table:\n\nVariable                            | Description\n----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------\npolychromatic_repo                  | Refers to the ppa repo to add.\npolychromatic_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`.\npolychromatic_repo_filename         | Defined to set the repository file name for saving in `/etc/apt/sources.list.d`\npolychromatic_app                   | Defines the app to install i.e. **polychromatic-meta**\npolychromatic_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`.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **polychromatic** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.polychromatic\n```\n\nFor customizing behavior of role (i.e. installation of latest **polychromatic** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.polychromatic\n  vars:\n    polychromatic_package_desired_state: latest\n```\n\nFor customizing behavior of role (i.e. un-installation of **polychromatic** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.polychromatic\n  vars:\n    polychromatic_package_desired_state: absent\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-polychromatic/blob/master/LICENSE)\n\n## Author Information\n\nThis role was created by [Ali Muhammad](https://www.alimuhammad.dev/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-polychromatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-polychromatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-polychromatic/lists"}