The “cupsclient.yml” playbook runs the cupsclient role which configures a Linux server to use CUPS for printing. In addition, it gets the current CUPS printer list and assigns options according to the printer suffix.
According to the Ansible Runbook, edit the cupsclient.yml to update the hosts. Note there is a banner_cups_clients group defined.
#- hosts: banner_cups_clients
roles:
- cupsclient
play cupsclient.yml per Ansible Runbook.
Unusual Procedures Manual LPOptions Setting
If for some reason Ansible is unable to configure the LP options, sign into each cupclient server. Enter this command for each printer with each printer suffix, note the printer name is specified by –p. An example of each set of options
/usr/bin/lpoptions -po-om-402c-ld -o landscape=true -o sides=two-sided-short-edge -o page-left=18.0 -o page-right=36.0 -o page-top=36.0 -o page-bottom=36.0 -o cpi=13.0 -o lpi=8.0 -o nowrap
/usr/bin/lpoptions -po-om-402c-ls -o landscape=true -o sides=one-sided-short-edge -o page-left=18.0 -o page-right=36.0 -o page-top=36.0 -o page-bottom=36.0 -o cpi=13.0 -o lpi=8.0 -o nowrap
/usr/bin/lpoptions -po-om-402c-pd -o portrait=true -o sides=two-sided-long-edge -o page-left=18.0 -o page-right=36.0 -o page-top=36.0 -o page-bottom=36.0 -o cpi=12.0 -o lpi=8.0 -o nowrap
/usr/bin/lpoptions -po-om-402c-ps -o portrait=true -o sides=one -o page-left=18.0 -o page-right=36.0 -o page-top=36.0 -o page-bottom=36.0 -o cpi=12.0 -o lpi=8.0 -o nowrap