drewbarrett.postfix

Ansible Role: Postfix

Installs Postfix

Requirements

None.

Role Variables

Here are the variables you can use, along with their default values (check defaults/main.yml):

  • postfix_config_file: /etc/postfix/main.cf

    This is the path to the Postfix configuration file.

  • postfix_service_state: started

    This indicates whether the Postfix service should be running after the role is executed.

  • postfix_service_enabled: true

    This shows whether the service should start automatically when the system boots up.

  • configuration_items:

    • name: inet_interfaces

      • value: localhost

      These are options for settings in the main.cf file, and can include any configuration item from POSTCONF(5).

Dependencies

None.

Example Playbook

This example playbook demonstrates how to set up an SMTP relay:

- hosts: all
  roles:
    - role: postfix
      vars:
        configuration_items:
          - name: inet_interfaces
            value: localhost
          - name: inet_protocols
            value: all
          - name: relayhost
            value: '[mail.com]:587'
          - name: smtp_sasl_auth_enable
            value: 'yes'
          - name: smtp_sasl_security_options
            value: noanonymous
          - name: smtp_sasl_password_maps
            value: static:[email protected]:password
          - name: smtp_use_tls
            value: 'yes'

License

MIT / BSD

Informazioni sul progetto

Postfix with complete configuration

Installa
ansible-galaxy install drewbarrett.postfix
Licenza
mit
Download
2.5k
Proprietario