From a1828b52aa2d7011203b47146fcc5eb7a30bfdd0 Mon Sep 17 00:00:00 2001 From: Bombar Maxime Date: Sun, 17 May 2020 13:29:14 +0200 Subject: [PATCH] [Postfix] Fanciness. --- roles/postfix/tasks/main.yml | 6 ++++++ roles/postfix/templates/postfix/master.cf.j2 | 4 ++-- roles/postfix/templates/update-motd.d/05-postfix.j2 | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 roles/postfix/templates/update-motd.d/05-postfix.j2 diff --git a/roles/postfix/tasks/main.yml b/roles/postfix/tasks/main.yml index 1144cecb..7b820ad2 100644 --- a/roles/postfix/tasks/main.yml +++ b/roles/postfix/tasks/main.yml @@ -27,3 +27,9 @@ - client_checks notify: - generate postmaps + +- name: Indicate role in motd + template: + src: update-motd.d/05-postfix.j2 + dest: /etc/update-motd.d/05-postfix + mode: 0755 diff --git a/roles/postfix/templates/postfix/master.cf.j2 b/roles/postfix/templates/postfix/master.cf.j2 index a2792718..909bbee8 100644 --- a/roles/postfix/templates/postfix/master.cf.j2 +++ b/roles/postfix/templates/postfix/master.cf.j2 @@ -71,8 +71,8 @@ # DO NOT SHARE THE POSTFIX QUEUE BETWEEN MULTIPLE POSTFIX INSTANCES. # # ========================================================================== -# service type private unpriv chroot wakeup maxproc command + args -# (yes) (yes) (yes) (never) (50) +# service type private unpriv chroot wakeup maxproc command + args +# (yes) (yes) (yes) (never) (50) # ========================================================================== {% if postfix.primary or postfix.secondary %} smtp inet n - - - 1 postscreen diff --git a/roles/postfix/templates/update-motd.d/05-postfix.j2 b/roles/postfix/templates/update-motd.d/05-postfix.j2 new file mode 100755 index 00000000..f05dbb28 --- /dev/null +++ b/roles/postfix/templates/update-motd.d/05-postfix.j2 @@ -0,0 +1,3 @@ +#!/usr/bin/tail +14 +{{ ansible_header | comment }} +> Postfix a été déployé sur cette machine. Voir /etc/postfix/.