robertdebock.cups
CUPS
Install and set up CUPS, the Common Unix Printing System.
GitHub | GitLab | Quality | Downloads | Version |
---|---|---|---|---|
Example Playbook
This example comes from molecule/default/converge.yml
and is tested with every push, pull request, and release.
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: robertdebock.cups
Before running, the machine needs preparation. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: yes
gather_facts: no
roles:
- role: robertdebock.bootstrap
For a more detailed explanation and example, see this link on how to use these roles.
Role Variables
Defaults for the variables are found in defaults/main.yml
:
---
# defaults file for cups
# Allow remote access
cups_listen: "localhost:631"
cups_serveralias: "*"
# Share local printers on the local network. (boolean)
cups_browsing: no
# Access settings for the server...
cups_locations:
- name: /
order: allow,deny
allow: "@LOCAL"
- name: /admin
order: allow,deny
allow: "@LOCAL"
- name: /admin/conf
authtype: Default
require: user @SYSTEM
order: allow,deny
allow: "@LOCAL"
- name: /admin/log
authtype: Default
require: user @SYSTEM
order: allow,deny
# Cups can save job history. (boolean)
cups_preserve_job_history: yes
# Cups can offer a web interface. (boolean)
cups_web_interface: yes
Requirements
- Required pip packages are listed in requirements.txt.
State of Used Roles
The roles listed below are used to prepare a system. You can use different methods for preparation.
Requirement | GitHub | GitLab |
---|---|---|
robertdebock.bootstrap |
Context
This role is part of several compatible roles. Check the documentation of these roles for more details.
Here is a list of related roles:
Compatibility
This role has been tested on the following container images:
Container | Tags |
---|---|
Alpine | all |
Amazon | Candidate |
EL | 8, 9 |
Debian | all |
Fedora | all |
OpenSUSE | all |
Ubuntu | all |
The minimum required version of Ansible is 2.12. Testing has been done on the following versions:
- Previous version.
- Current version.
- Development version.
If you encounter any issues, please report them on GitHub.
License
Author Information
Consider sponsoring me.
Install and configure CUPS, the Common Unix Printing System.
ansible-galaxy install robertdebock.cups