Deploy udev rule

This commit is contained in:
Tobias Manske 2023-12-01 22:34:59 +01:00
parent 700065d131
commit f871e6223c
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1 @@
SUBSYSTEM=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0159", ATTRS{serial}=="X35D008129", SYMLINK+="usb-scanner"

View File

@ -1,3 +1,20 @@
- name: Deploy udev rule
hosts: thonkpad.ka.chaoswg.org
tasks:
- name: Deploy udev rule
ansible.builtin.template:
src: 99-usb-scanner.rules.j2
dest: /etc/udev/rules.d/
owner: root
group: root
mode: 0644
notify:
- Reload udev rules
handlers:
- name: Reload udev rules
ansible.builtin.command: udevadm control --reload-rules && udevadm trigger
changed_when: false
- name: Setup Thonkpad - name: Setup Thonkpad
hosts: thonkpad.ka.chaoswg.org hosts: thonkpad.ka.chaoswg.org
vars: vars: