mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored pc roles and added README.md's with help of ChatGPT. See https://chat.openai.com/share/df22ba6a-76d0-47c2-a8c7-daec3f42b4e5
This commit is contained in:
9
roles/driver-msi-keyboard-color/tasks/main.yml
Normal file
9
roles/driver-msi-keyboard-color/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Install MSI packages
|
||||
kewlfft.aur.aur:
|
||||
use: yay
|
||||
name:
|
||||
- msi-perkeyrgb
|
||||
|
||||
- include_tasks: setup_script.yml
|
||||
- include_tasks: setup_timers.yml
|
8
roles/driver-msi-keyboard-color/tasks/setup_script.yml
Normal file
8
roles/driver-msi-keyboard-color/tasks/setup_script.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Copy keyboard_color.sh script
|
||||
copy:
|
||||
src: keyboard_color.sh
|
||||
dest: /opt/keyboard_color.sh
|
||||
mode: 0755
|
||||
tags:
|
||||
- keyboard-color
|
30
roles/driver-msi-keyboard-color/tasks/setup_timers.yml
Normal file
30
roles/driver-msi-keyboard-color/tasks/setup_timers.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: Copy keyboard-color.timer file
|
||||
template:
|
||||
src: keyboard-color.timer.j2
|
||||
dest: /etc/systemd/system/keyboard-color.timer
|
||||
mode: 0644
|
||||
tags:
|
||||
- keyboard-color
|
||||
|
||||
- name: Copy keyboard-color.service file
|
||||
template:
|
||||
src: keyboard-color.service.j2
|
||||
dest: /etc/systemd/system/keyboard-color.service
|
||||
mode: 0644
|
||||
tags:
|
||||
- keyboard-color
|
||||
|
||||
- name: Reload systemd daemon
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
tags:
|
||||
- keyboard-color
|
||||
|
||||
- name: Enable and start keyboard-color.timer
|
||||
systemd:
|
||||
name: keyboard-color.timer
|
||||
state: restarted
|
||||
enabled: yes
|
||||
tags:
|
||||
- keyboard-color
|
Reference in New Issue
Block a user