Add RGB kraken role

This commit is contained in:
Salt 2020-10-04 18:09:50 -05:00
parent 3e7fe608c5
commit eb9d3b64c5
3 changed files with 42 additions and 0 deletions

View File

@ -46,3 +46,7 @@
vars:
sddm_theme_name: "breeze"
tags: [ sddm, desktop ]
- hosts: dsk-cstm-0
roles:
- role: rgb-kraken
tags: [ desktop, kraken, rgb ]

View 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

View 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