ansible/roles/rgb-kraken/tasks/main.yml

26 lines
658 B
YAML
Raw Normal View History

2020-10-04 18:09:50 -05:00
#!/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