Added a role for printer so that the container can depend on it.

This commit is contained in:
2026-09-02 13:07:50 +00:00
parent c8e1ab74b6
commit 50974c7574
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -16,4 +16,5 @@
when: var_file is defined
roles:
- printer
- frank
@@ -0,0 +1,2 @@
- name: Reload udev
ansible.builtin.shell: udevadm control --reload-rules && udevadm trigger --action=change
@@ -0,0 +1,7 @@
- name: Add udev rule for usb printer systemd tag
copy:
dest: /etc/udev/rules.d/99-usb-printers.rules
content: |
SUBSYSTEM=="usbmisc", KERNEL=="lp*", TAG+="systemd"
mode: "0644"
notify: Reload udev