drewbarrett.postfix
Ansible-Rolle: Postfix
Installiert Postfix
Anforderungen
Rollenvariablen
Verfügbare Variablen sind unten aufgeführt, zusammen mit den Standardwerten (siehe defaults/main.yml
):
postfix_config_file: /etc/postfix/main.cf
Der Pfad zur Postfix main.cf
Konfigurationsdatei.
postfix_service_state: started
postfix_service_enabled: true
Der Zustand, in dem der Postfix-Dienst nach der Ausführung dieser Rolle sein sollte, und ob der Dienst beim Start aktiviert werden soll.
configuration_items:
- name: inet_interfaces
value: localhost
- ...
Optionen für Werte in der Datei main.cf
. Dies kann jedes Konfigurationselement aus POSTCONF(5)
sein.
Abhängigkeiten
Keine.
Beispiel-Playbook
Dieses Playbook zeigt ein Beispiel für einen 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'
Lizenz
MIT / BSD
Über das Projekt
Postfix with complete configuration
Installieren
ansible-galaxy install drewbarrett.postfix
Lizenz
mit
Downloads
2.5k
Besitzer