mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-05 02:28:06 +01:00
34 lines
752 B
YAML
34 lines
752 B
YAML
---
|
|
- name: Install MSI packages
|
|
kewlfft.aur.aur:
|
|
use: yay
|
|
name:
|
|
- msi-perkeyrgb
|
|
|
|
- name: Copy keyboard_color.sh script
|
|
copy:
|
|
src: keyboard_color.py
|
|
dest: /opt/keyboard_color.py
|
|
mode: 0755
|
|
|
|
- name: Copy keyboard-color.cymais.service file
|
|
template:
|
|
src: keyboard-color.service.j2
|
|
dest: /etc/systemd/system/keyboard-color.cymais.service
|
|
mode: 0644
|
|
|
|
- name: Reload systemd daemon
|
|
systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: set service_name to the name of the current role
|
|
set_fact:
|
|
service_name: "{{ role_name }}"
|
|
|
|
- name: "include role for systemd-timer for {{service_name}}"
|
|
include_role:
|
|
name: systemd-timer
|
|
vars:
|
|
on_calendar: "{{on_calendar_msi_keyboard_color}}"
|
|
persistent: "true"
|