summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-14 23:34:46 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:39 +0200
commit46afd44e60fc043e2d1f0bd066dcfb94fe1b11f2 (patch)
treea29fddf8bcd2c28f9087bafa8d7de04090eccddc
parent3965e572cd55178ba15bb87151675471d18ff1d6 (diff)
Add a 'root' alias to root@fripost.org.
-rw-r--r--roles/common/tasks/mail.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/common/tasks/mail.yml b/roles/common/tasks/mail.yml
index 56a012e..1873928 100644
--- a/roles/common/tasks/mail.yml
+++ b/roles/common/tasks/mail.yml
@@ -76,6 +76,11 @@
tags:
- genkey
+- name: Add a 'root' alias
+ lineinfile: dest=/etc/aliases create=yes
+ regexp="^root:"" "
+ line="root:"" root@fripost.org"
+
- name: Compile the static local Postfix database
postmap: cmd=postalias src=/etc/aliases db=cdb
owner=root group=root