50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
- name: Python2 CUPS module
|
|
apt:
|
|
pkg: python-cups
|
|
state: present
|
|
|
|
- name: Python3 CUPS module
|
|
apt:
|
|
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 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: 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
|
|
enabled: true
|
|
state: present
|
|
# this state will fail during initial install where cups is not running
|
|
ignore_errors: true
|