weareinteractive.postfix
Ansible Postfix Role
postfixis an ansible role which:
- installs postfix
- optionally catches all mails and redirect them to a user
- optionally listens to local interface only
- configures service
Installation
Using ansible-galaxy:
$ ansible-galaxy install franklinkim.postfix
Using requirements.yml:
- src: franklinkim.postfix
Using git:
$ git clone https://github.com/weareinteractive/ansible-postfix.git franklinkim.postfix
Variables
Here is a list of all the default variables for this role, which are also available in defaults/main.yml.
# listen only on local interface
postfix_listen_local_only: yes
# redirect all mails
postfix_redirect_local: no
# redirect all mails user
postfix_redirect_local_user: root
# start on boot
postfix_service_enabled: yes
# current state: started, stopped
postfix_service_state: started
Handlers
These are the handlers that are defined in handlers/main.yml.
restart postfix
Example playbook
- hosts: all
sudo: yes
roles:
- franklinkim.postfix
vars:
postfix_redirect_local: yes
postfix_listen_local_only: yes
postfix_redirect_local_user: root
Testing
$ git clone https://github.com/weareinteractive/ansible-postfix.git
$ cd ansible-postfix
$ vagrant up
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
License
Copyright (c) We Are Interactive under the MIT license.
Install
ansible-galaxy install weareinteractive.postfixLicense
mit
Downloads
230
Owner
