geerlingguy.postfix
Ansible 角色:Postfix
在 RedHat/CentOS 或 Debian/Ubuntu 上安装 Postfix。
需求
如果您将此用作 SMTP 中继服务器,您需要自行配置,并在服务器防火墙中打开 TCP 25 端口。
角色变量
可用的变量如下所示,带有默认值(参见 defaults/main.yml
):
postfix_config_file: /etc/postfix/main.cf
Postfix main.cf
配置文件的路径。
postfix_service_state: started
postfix_service_enabled: true
此角色运行后,Postfix 服务应处于的状态,以及是否在启动时启用该服务。
postfix_inet_interfaces: localhost
postfix_inet_protocols: all
main.cf
文件中 inet_interfaces
和 inet_protocols
的选项。
依赖关系
无。
示例剧本
- hosts: all
roles:
- geerlingguy.postfix
许可证
MIT / BSD
作者信息
该角色由 Jeff Geerling 于 2014 年创建,他是 Ansible for DevOps 的作者。
安装
ansible-galaxy install geerlingguy.postfix
许可证
mit
下载
161.3k
拥有者
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns