Add RGB kraken role
This commit is contained in:
parent
3e7fe608c5
commit
eb9d3b64c5
@ -46,3 +46,7 @@
|
|||||||
vars:
|
vars:
|
||||||
sddm_theme_name: "breeze"
|
sddm_theme_name: "breeze"
|
||||||
tags: [ sddm, desktop ]
|
tags: [ sddm, desktop ]
|
||||||
|
- hosts: dsk-cstm-0
|
||||||
|
roles:
|
||||||
|
- role: rgb-kraken
|
||||||
|
tags: [ desktop, kraken, rgb ]
|
||||||
|
25
roles/rgb-kraken/tasks/main.yml
Normal file
25
roles/rgb-kraken/tasks/main.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- name: Install and configure software for M22 Kraken management
|
||||||
|
block:
|
||||||
|
- name: Install APT packages
|
||||||
|
# Build-time dep
|
||||||
|
apt: name=libusb-1.0-0-dev
|
||||||
|
- name: Install pip3 packages
|
||||||
|
pip:
|
||||||
|
executable: "/usr/bin/pip3"
|
||||||
|
state: latest
|
||||||
|
name:
|
||||||
|
- liquidctl
|
||||||
|
- name: Template out services
|
||||||
|
template:
|
||||||
|
src: rgb-kraken.service
|
||||||
|
dest: /etc/systemd/system/rgb-kraken.service
|
||||||
|
- name: Start and enable services
|
||||||
|
systemd:
|
||||||
|
daemon_reload: yes
|
||||||
|
name: rgb-kraken.service
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
become: yes
|
13
roles/rgb-kraken/templates/rgb-kraken.service
Normal file
13
roles/rgb-kraken/templates/rgb-kraken.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# vim:ft=systemd
|
||||||
|
# https://github.com/jonasmalacofilho/liquidctl#introducing-the-command-line-interface
|
||||||
|
[Unit]
|
||||||
|
Description=Kraken RGB initialization service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=liquidctl initialize all
|
||||||
|
ExecStart=liquidctl set ring color marquee-3 ff0000
|
||||||
|
ExecStart=liquidctl set logo color fixed ff0000
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user