Clean up print queue script and implementation.

This commit is contained in:
Andreas B. Mundt 2023-11-11 10:05:47 +01:00
parent 70c45c477f
commit 5818c027ac
7 changed files with 43 additions and 42 deletions

View file

@ -1,5 +1,5 @@
---
- name: Install cups and python libs
- name: Install cups
apt:
name:
- cups
@ -18,13 +18,13 @@
state: stopped
enabled: no
- name: install install-printers.sh
- name: Install install-printers.sh
template:
src: install-printers.sh.j2
dest: /usr/local/bin/install-printers.sh
mode: 0755
- name: install lmn-install-printers sudoers
- name: Install lmn-install-printers sudoers
copy:
src: 90-lmn-install-printers
dest: /etc/sudoers.d/
@ -32,10 +32,8 @@
owner: root
group: root
- name: install lmn-printer.sh in /etc/profile.d/
- name: Run printer script from /etc/profile.d/
copy:
src: lmn-printer.sh
dest: /etc/profile.d/
mode: 0644
owner: root
group: root
dest: /etc/profile.d/lmn-printer.sh
content: |
[[ "${UID}" -gt 10000 ]] && (sudo /usr/local/bin/install-printers.sh > /dev/null &)