New printer at the lab (HP M281)

master
Tim Hawes 6 years ago
parent 43434e8d70
commit 11c42894ce
  1. 2277
      roles/hacklab_printers/files/HP-ColorLaserJet-MFP-M278-M281.ppd
  2. 38
      roles/hacklab_printers/tasks/main.yml

@ -8,18 +8,38 @@
pkg: python3-cups
state: present
- name: PPD for Brother HL-1430
#- name: PPD for Brother HL-1430
# copy:
# src: Brother-HL-1430.ppd
# dest: /etc/cups/Brother-HL-1430.ppd
- name: PPD for HP Color LaserJet MFP M281
copy:
src: Brother-HL-1430.ppd
dest: /etc/cups/Brother-HL-1430.ppd
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 Brother HL-1430
- 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

Loading…
Cancel
Save