install printer based on GPO
This commit is contained in:
parent
cc4010b1bb
commit
2fe52816e4
31 changed files with 3284 additions and 0 deletions
6
roles/lmn_printer/files/rmlpr.service
Normal file
6
roles/lmn_printer/files/rmlpr.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Remove all printers
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=sh -c 'lpstat -p && for printer in $(lpstat -p | cut -f 2 -d " "); do lpadmin -x $printer; done || echo no printer found.'
|
Loading…
Add table
Add a link
Reference in a new issue