This is an Ansible role to configure sendmail/postfix with a designated smarthost variable. Role will also configure aliases file to forward all root email with admin_email variable.
None
smarthost: smtp.example.com
admin_email: [email protected]
None
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
vars:
smarthost: smtp.example.com
admin_email: [email protected]
roles:
- { role: ansible-role-smarthost }
BSD
Kade Cole - https://github.com/kadecole/ansible-role-smarthost