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@example.com
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: me@example.com
roles:
- { role: ansible-role-smarthost }
BSD
Kade Cole - https://github.com/kadecole/ansible-role-smarthost