robertdebock.cups

CUPS

安装和配置 CUPS,通用 Unix 打印系统。

GitHub GitLab 质量 下载量 版本
github gitlab quality downloads 版本

示例剧本

这个例子取自 molecule/default/converge.yml,在每次推送、拉取请求和发布时进行测试。

---
- name: 收敛
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: robertdebock.cups

机器需要准备。在 CI 中,这通过 molecule/default/prepare.yml 完成:

---
- name: 准备
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: robertdebock.bootstrap

另见 完整的解释和示例 如何使用这些角色。

角色变量

变量的默认值设置在 defaults/main.yml 中:

---
# cups 的默认文件

# 允许远程访问
cups_listen: "localhost:631"
cups_serveralias: "*"

# 在本地网络上共享本地打印机。(布尔值)
cups_browsing: no

# 允许访问服务器...
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 可以保存作业历史。(布尔值)
cups_preserve_job_history: yes

# Cups 可以提供 Web 界面。(布尔值)
cups_web_interface: yes

要求

已使用角色的状态

以下角色用于准备系统。您可以用其他方式准备您的系统。

需求 GitHub GitLab
robertdebock.bootstrap 构建状态 GitHub 构建状态 GitLab

上下文

该角色是许多兼容角色的一部分。有关更多信息,请查看 这些角色的文档

以下是相关角色的概述: 依赖关系

兼容性

该角色已在以下 容器镜像 上进行了测试:

容器 标签
Alpine 所有
Amazon 候选
EL 8, 9
Debian 所有
Fedora 所有
opensuse 所有
Ubuntu 所有

所需的最低 Ansible 版本为 2.12,测试已完成:

  • 之前的版本。
  • 当前版本。
  • 开发版本。

如果您发现问题,请在 GitHub 上注册。

许可证

Apache-2.0

作者信息

robertdebock

请考虑 资助我

关于项目

Install and configure CUPS, the Common Unix Printing System.

安装
ansible-galaxy install robertdebock.cups
许可证
apache-2.0
下载
1.9k
拥有者
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.