Printing
This role downloads and installs the ETH printing tool.
General
This role consists of six main steps:
install-printing-tools.yml
- Checking if the ETH printing tool is installed
- name: Check if ethz-cups-config-app-amd64 is installed
command: dpkg-query -W ethz-cups-config-app
register: ethz_cups_config_app_check_deb
failed_when: ethz_cups_config_app_check_deb.rc > 1
changed_when: ethz_cups_config_app_check_deb.rc == 1
- Downloading ETH printing tool
- name: Download ETH printing tool
get_url:
url: "https://download.opensuse.org/repositories/home:/ethz/xUbuntu_22.04/amd64/ethz-cups-config-app_1.0.2-1_amd64.deb"
dest: /tmp/ethz-cups-config-app.deb
become: true
when: ethz_cups_config_app_check_deb.rc == 1
- Installing ETH printing tool
- name: Install ETH printing tool
apt: deb=/tmp/ethz-cups-config-app.deb
become: true
when: ethz_cups_config_app_check_deb.rc == 1
lpadmin-management.yml
- Configuring lpadmin-group
Dependencies
Role Dependencies
jammy_gnome
Package Dependencies
none
Role Variables
Name | Type | Default value | Purpose | Comment | Role |
---|---|---|---|---|---|
printing_conf | Boolean | false | If set to true in the inventory file, the ETH printing tool will be installed and the lpadmin-group will be configured. | - | jammy_printing |
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
BSD
Author Information
Maintainer: Raffael Nussbaumer
Support-Contact: s4d-linux-support@id.ethz.ch