Deploy udev rule
This commit is contained in:
parent
700065d131
commit
f871e6223c
1
ansible/plays/templates/99-usb-scanner.rules.j2
Normal file
1
ansible/plays/templates/99-usb-scanner.rules.j2
Normal file
@ -0,0 +1 @@
|
|||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0159", ATTRS{serial}=="X35D008129", SYMLINK+="usb-scanner"
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user