From 3708b8f2547da87de1f3a5424d7b89acffabf838 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 21 Mar 2020 22:21:25 -0500 Subject: [PATCH] Rename desktop playbook --- localhost.yml => desktop.yml | 0 localhost-deploy.sh | 2 +- roles/desktop/tasks/main.yml | 1 + roles/desktop/templates/switch-rcm.rules | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) rename localhost.yml => desktop.yml (100%) create mode 100644 roles/desktop/templates/switch-rcm.rules diff --git a/localhost.yml b/desktop.yml similarity index 100% rename from localhost.yml rename to desktop.yml diff --git a/localhost-deploy.sh b/localhost-deploy.sh index 9dcd83c..f093c49 100755 --- a/localhost-deploy.sh +++ b/localhost-deploy.sh @@ -6,5 +6,5 @@ # Distributed under terms of the MIT license. # -ansible-playbook localhost.yml --ask-vault-pass --ask-become-pass +ansible-playbook desktop.yml --ask-vault-pass --ask-become-pass diff --git a/roles/desktop/tasks/main.yml b/roles/desktop/tasks/main.yml index 80a4399..c1f3fdf 100644 --- a/roles/desktop/tasks/main.yml +++ b/roles/desktop/tasks/main.yml @@ -19,6 +19,7 @@ - { src: "hosts", dest: "/etc/hosts", mode: "0644" } - { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" } - { src: "g810-led.rules", dest: "/etc/udev/rules.d/50-g810-led.rules", mode: "0644" } + - { src: "switch-rcm.rules", dest: "/etc/udev/rules.d/50-switch-rcm.rules", mode: "0644" } - name: Reload udev command: /usr/bin/udevadm trigger - name: Enable i386 architecture diff --git a/roles/desktop/templates/switch-rcm.rules b/roles/desktop/templates/switch-rcm.rules new file mode 100644 index 0000000..77d5ae5 --- /dev/null +++ b/roles/desktop/templates/switch-rcm.rules @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0664", GROUP="plugdev"