2018-06-02 22:03:27 +00:00
|
|
|
- name: Python2 CUPS module
|
|
|
|
apt:
|
|
|
|
pkg: python-cups
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Python3 CUPS module
|
|
|
|
apt:
|
|
|
|
pkg: python3-cups
|
|
|
|
state: present
|
|
|
|
|
2018-10-25 17:48:39 +00:00
|
|
|
#- 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
|
2018-06-02 22:03:27 +00:00
|
|
|
copy:
|
2018-10-25 17:48:39 +00:00
|
|
|
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
|
2018-06-02 22:03:27 +00:00
|
|
|
|
2018-10-25 17:48:39 +00:00
|
|
|
- name: Configure HP Color LaserJet MFP M281fdw
|
2018-06-02 22:03:27 +00:00
|
|
|
cups_printer:
|
2018-10-25 17:48:39 +00:00
|
|
|
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
|
2018-06-02 22:03:27 +00:00
|
|
|
default: true
|
|
|
|
shared: false
|
|
|
|
accept: true
|
|
|
|
enabled: true
|
|
|
|
state: present
|
|
|
|
# this state will fail during initial install where cups is not running
|
|
|
|
ignore_errors: true
|