New printer at the lab (HP M281)

This commit is contained in:
Tim Hawes 2018-10-25 18:48:39 +01:00
parent 43434e8d70
commit 11c42894ce
2 changed files with 2307 additions and 10 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,18 +8,38 @@
pkg: python3-cups
state: present
- name: PPD for Brother HL-1430
copy:
src: Brother-HL-1430.ppd
dest: /etc/cups/Brother-HL-1430.ppd
#- name: PPD for Brother HL-1430
# copy:
# src: Brother-HL-1430.ppd
# dest: /etc/cups/Brother-HL-1430.ppd
- name: Configure Brother HL-1430
- name: PPD for HP Color LaserJet MFP M281
copy:
src: HP-ColorLaserJet-MFP-M278-M281.ppd
dest: /etc/cups/HP-ColorLaserJet-MFP-M278-M281.ppd
#- name: Configure Brother HL-1430
# cups_printer:
# name: Brother-HL-1430
# ppd: /etc/cups/Brother-HL-1430.ppd
# info: Brother HL-1430
# location:
# device: socket://jetdirect.hacklab:9100
# default: false
# shared: false
# accept: true
# enabled: true
# state: present
# # this state will fail during initial install where cups is not running
# ignore_errors: true
- name: Configure HP Color LaserJet MFP M281fdw
cups_printer:
name: Brother-HL-1430
ppd: /etc/cups/Brother-HL-1430.ppd
info: Brother HL-1430
location:
device: socket://jetdirect.hacklab:9100
name: HP-Color-LaserJet-MFP-M281fdw
ppd: /etc/cups/HP-ColorLaserJet-MFP-M278-M281.ppd
info: HP Color LaserJet MFP M281fdw
location: Edinburgh Hacklab
device: socket://laserjet.hacklab:9100
default: true
shared: false
accept: true