revenni.base

revenni.base

Ansible 角色,为 Debian / Ubuntu 机器提供最低配置。支持无人值守更新和外部中继主机的 Postfix 配置。

平台 平台 许可证

需求

角色变量

无人值守更新变量

  • unattended_enabled (1) - 启用无人值守升级
  • unattended_email (emailxyz@domain.com) - 发送错误通知的电子邮件地址
  • unattended_email_errors_only (true) - 仅发送错误邮件
  • unattended_reboot (false) - 是否自动重启?布尔值。
  • unattended_reboot_time (21:00) - 重启时间
  • unattended_remove_deps (true) - 是否自动移除未使用的依赖?布尔值。

Postfix 变量

  • postfix_enabled (0) - 启用 Postfix?
  • postfix_relayhost ([smtp.gmail.com]:587) - 连接的邮件服务器
  • postfix_interfaces (127.0.0.1) - 仅用于系统中继
  • postfix_protocols (ipv4) - 使用 ipv4
  • postfix_sender_canonical () - 指定 {{ postfix_sasl_username }} 来强制邮件从我们认证的用户名发送。Exchange 强制执行此项。
  • postfix_sasl_username (relay@somedomain.com) - sasl 认证的用户名
  • postfix_sasl_password (vault string) - 替换为 echo -n "password" | ansible-vault encrypt_string --stdin-name 'postfix_sasl_password' 的输出

依赖

示例剧本

- hosts: all
  become: true
  roles:
     - { role: revenni.base, tags: base }

许可证

MIT

更新日志

2021年10月17日 v1.0.4 添加 libsasl2-modules 作为 Postfix 依赖。
2021年10月15日 v1.0.3 为 bullseye 安全源添加无人值守支持。
2020年12月20日 v1.0.2 添加 sender_canonical 支持。默认禁用,定义 postfix_sender_canonical 以启用。
2020年9月1日 v1.0.1 添加对 Debian 无人值守更新的支持。逐渐不再支持 Ubuntu。
2020年5月11日 v1.0.0 首个发布版本,Ubuntu 最低配置。

作者信息

关于项目

Revenni base Debian / Ubuntu with postfix

安装
ansible-galaxy install revenni.base
许可证
Unknown
下载
116
拥有者
Revenni is a Toronto based consulting firm specializing in open source Infrastructure as Code, System Administration / DevOps, and Remediation services.