danvaida.postfix

Build Status Galaxy

Ansible Postfix role

Installation and configuration of Postfix MTA.

Requirements

None.

Role Variables

  • postfix_config_templates: List of configuration templates.

  • postfix_postmap_files: List of files to hash with the postmap binary.

  • postfix_tld: TLD to use in mailname.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
    - role: postfix
      postfix_config_templates:
        -
          src: 'main.cf.j2'
          dest: '/etc/postfix/main.cf'
          owner: root
          group: root
          mode: '0644'
      postfix_postmap_files:
        - sasl
      postfix_tld: 'heregoes.com'

Testing

If you want to run the tests on the provided docker environment, run the following commands:

$ cd /path/to/ansible-roles-postfix
$ docker build -t ansible-roles-test tests/support
$ docker run -it -v $PWD:/role ansible-roles-test

On OSX, you might need to change the python path env var, so that the pip installed packages are preferred:

$ export PYTHONPATH="/Library/Python/2.7/site-packages:$PYTHONPATH"
Install
ansible-galaxy install danvaida.postfix
GitHub repository
License
Unknown
Downloads
115
Owner
Freelance DevOps Engineer and Solutions Architect.