setup_printer role – Setup a printer

Note

This role is part of the ufrmath.computer_labs collection (version 1.0.0).

To install it use: ansible-galaxy collection install git+https://github.com/guillod/computer_labs.

To use it in a playbook, specify: ufrmath.computer_labs.setup_printer.

Entry point main – Setup a printer

Synopsis

  • Check if printer_name already defined with lpstat;

  • Add printer printer_name with lpadmin with IPP Everywhere.

Parameters

Parameter

Comments

printer_ip

string / required

ip or hostname of the printer

printer_name

string / required

name of the printer