forked from mauro/ansible-role-postfix
ssl cert
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
image: "{{ postfix_image }}"
|
||||
volumes:
|
||||
- "{{ postfix_volume }}:/etc/postfix/"
|
||||
- "{{ postfix_volume_ssl }}:/ssl/"
|
||||
networks:
|
||||
- name: "{{ docker_network_name }}"
|
||||
ports: "{{ postfix_publish_ports }}"
|
||||
@@ -39,11 +40,18 @@
|
||||
name: "{{ postfix_volume }}"
|
||||
register: res
|
||||
|
||||
- name: Leer info de volumen {{ postfix_volume_ssl }}
|
||||
docker_volume_info:
|
||||
name: "{{ postfix_volume_ssl }}"
|
||||
register: ssl
|
||||
|
||||
- name: Exportar informacion de volumen
|
||||
set_fact:
|
||||
postfix_container: "{{ lookup('vars','postfix_container') }}"
|
||||
postfix_volume: "{{ lookup('vars','postfix_volume') }}"
|
||||
postfix_mountpoint: "{{ res.volume.Mountpoint }}"
|
||||
postfix_volume_ssl: "{{ lookup('vars','postfix_volume_ssl') }}"
|
||||
postfix_mountpoint_ssl: "{{ ssl.volume.Mountpoint }}"
|
||||
|
||||
- name: Configurar lookup tables
|
||||
include_tasks: lookup_tables.yml
|
||||
@@ -145,10 +153,8 @@
|
||||
smtpd_sasl_type: dovecot
|
||||
smtpd_sasl_auth_enable:
|
||||
"{{ 'yes' if postfix_enable_smtpd_auth else 'no' }}"
|
||||
smtpd_tls_cert_file:
|
||||
"{{ postfix_tls_certificate }}"
|
||||
smtpd_tls_key_file:
|
||||
"{{ postfix_tls_private_key }}"
|
||||
smtpd_tls_cert_file: /ssl/cert.pem
|
||||
smtpd_tls_key_file: /ssl/key.pem
|
||||
smtp_tls_security_level:
|
||||
"{{postfix_incoming_tls_security}}"
|
||||
smtpd_tls_security_level:
|
||||
|
||||
Reference in New Issue
Block a user