Only reload udev if we assigned new rules

Having my mouse flip out at midnight was getting old
This commit is contained in:
Salt 2020-05-06 00:02:39 -05:00
parent f285096a5c
commit 7753453caa

View File

@ -25,9 +25,16 @@
loop:
- { src: "hosts", dest: "/etc/hosts", mode: "0644" }
- { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" }
- { src: "i3.desktop", dest: "/usr/share/xsessions/i3-custom.desktop", mode: "0644" }
- name: Copy udev rules
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "{{ item.mode }}"
loop:
- { 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" }
- { src: "i3.desktop", dest: "/usr/share/xsessions/i3-custom.desktop", mode: "0644" }
notify: reload udev
- name: Reload udev
command: /usr/bin/udevadm trigger
- name: Enable i386 architecture