Allow teachers to install printers on teacherlaptops.

This commit is contained in:
Raphael Dannecker 2024-06-04 14:40:15 +02:00
parent a8d74fce5b
commit 463997aa26

View file

@ -32,6 +32,14 @@
- "/"
- "/admin"
- name: Allow group role-teacher to manage printers
lineinfile:
dest: /etc/cups/cups-files.conf
line: 'SystemGroup root lpadmin role-teacher'
regexp: '^SystemGroup'
state: present
when: groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop
- name: Disable cups-browsed
ansible.builtin.systemd:
name: cups-browsed.service