From 7f7f59b269dbe08fb37ef1301b379a7711b4faf5 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Thu, 12 Dec 2024 18:49:56 +0100 Subject: [PATCH] remove all invisible unicode characters --- tasks/configure.yml | 4 ++-- templates/aliases.j2 | 2 +- templates/main.cf.j2 | 4 ++-- templates/sender_relay.j2 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index fc599e9..66aa576 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -1,4 +1,4 @@ -- name: postfix | copy configuration +- name: postfix | copy configuration template: src: main.cf.j2 dest: /etc/postfix/main.cf @@ -7,7 +7,7 @@ mode: 0644 notify: restart postfix -- name: postfix | create /etc/aliases +- name: postfix | create /etc/aliases template: src: aliases.j2 dest: /etc/aliases diff --git a/templates/aliases.j2 b/templates/aliases.j2 index 425f8b2..a07d0f2 100644 --- a/templates/aliases.j2 +++ b/templates/aliases.j2 @@ -1,4 +1,4 @@ -# {{ ansible_managed }} +# {{ ansible_managed }} # /etc/aliases mailer-daemon: postmaster postmaster: root diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index 5727048..3289561 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -2,7 +2,7 @@ smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) myhostname = {% if postfix_hostname is defined %}{{ postfix_hostname }}{% else %}{{ ansible_hostname }}{% endif %} -compatibility_level= {{ postfix_compatibility_level }} +compatibility_level= {{ postfix_compatibility_level }} myorigin = /etc/mailname mydestination = $myhostname, localhost.$mydomain, localhost, {% if postfix_hostname is defined %}{{ postfix_hostname }}{% else %}{{ ansible_hostname }}{% endif %} @@ -39,7 +39,7 @@ smtp_tls_security_level = {{ postfix_smtp_tls_security_level }} smtp_tls_ciphers = {{ postfix_smtp_tls_ciphers }} smtp_tls_loglevel = {{ postfix_smtp_tls_loglevel }} smtp_tls_protocols = {{ postfix_smtp_tls_protocols | join(', ') }} -smtp_tls_exclude_ciphers = {{ postfix_smtp_tls_exclude_ciphers | join(', ') }} +smtp_tls_exclude_ciphers = {{ postfix_smtp_tls_exclude_ciphers | join(', ') }} smtpd_use_tls=yes smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem diff --git a/templates/sender_relay.j2 b/templates/sender_relay.j2 index 8be67ea..720bd40 100644 --- a/templates/sender_relay.j2 +++ b/templates/sender_relay.j2 @@ -1,5 +1,5 @@ {% if postfix_sender_relay is defined %} {% for relay in postfix_sender_relay %} -{{ relay }} +{{ relay }} {% endfor %} {% endif %}