diff --git a/playbook.yml b/playbook.yml index 20a7d4d..2a4e2fc 100644 --- a/playbook.yml +++ b/playbook.yml @@ -12,11 +12,16 @@ become: true roles: - native-gnome +- name: setup msi rgb keyboard + hosts: msi_perkeyrgb_hosts + become: true + roles: + - native-msi-perkeyrgb - name: setup ssh hosts hosts: ssh_hosts become: false roles: - - native-ssh + - native-msi-perkeyrgb - name: setup swapfile hosts hosts: swapfile_hosts become: false diff --git a/roles/native-msi-perkeyrgb/Readme.md b/roles/native-msi-perkeyrgb/Readme.md new file mode 100644 index 0000000..629fed5 --- /dev/null +++ b/roles/native-msi-perkeyrgb/Readme.md @@ -0,0 +1,4 @@ +# native-msi-gs66 +# further information +- https://github.com/Askannz/msi-perkeyrgb +- https://wiki.archlinux.org/title/MSI_GS66_11UX \ No newline at end of file diff --git a/roles/native-msi-perkeyrgb/meta/main.yml b/roles/native-msi-perkeyrgb/meta/main.yml new file mode 100644 index 0000000..795fd09 --- /dev/null +++ b/roles/native-msi-perkeyrgb/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: +- native-aur-helper \ No newline at end of file diff --git a/roles/native-msi-perkeyrgb/tasks/main.yml b/roles/native-msi-perkeyrgb/tasks/main.yml new file mode 100644 index 0000000..0368e20 --- /dev/null +++ b/roles/native-msi-perkeyrgb/tasks/main.yml @@ -0,0 +1,9 @@ +- name: Install MSI packages + kewlfft.aur.aur: + use: yay + name: + - msi-perkeyrgb + +- name: Change preset of keyboard {{vendor_and_product_id}} to {{preset}} + ansible.builtin.shell: sudo msi-perkeyrgb --model GS65 -p "{{preset}}" --id "{{vendor_and_product_id}}" + become: true \ No newline at end of file