Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
servers-config
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
servers-config
Commits
40e67900
Commit
40e67900
authored
Mar 15, 2018
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postfix: add the aliases table
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
82ff16a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
roles/postfix/handlers/main.yml
roles/postfix/handlers/main.yml
+3
-0
roles/postfix/tasks/main.yml
roles/postfix/tasks/main.yml
+6
-0
roles/postfix/templates/aliases
roles/postfix/templates/aliases
+22
-0
No files found.
roles/postfix/handlers/main.yml
View file @
40e67900
---
---
-
name
:
newaliases
command
:
newaliases
-
name
:
hash
-
name
:
hash
command
:
postmap hash:/etc/postfix/{{ item }}
command
:
postmap hash:/etc/postfix/{{ item }}
with_items
:
"
{{
hash_tables
}}"
with_items
:
"
{{
hash_tables
}}"
...
...
roles/postfix/tasks/main.yml
View file @
40e67900
...
@@ -23,6 +23,12 @@
...
@@ -23,6 +23,12 @@
-
restart postfix
-
restart postfix
with_items
:
"
{{
hash_tables
}}"
with_items
:
"
{{
hash_tables
}}"
-
name
:
Install the aliases file
template
:
src
:
aliases
dest
:
/etc/aliases
notify
:
newaliases
-
name
:
Remove old files
-
name
:
Remove old files
file
:
path=/etc/postfix/{{ item }} state=absent
file
:
path=/etc/postfix/{{ item }} state=absent
with_items
:
with_items
:
...
...
roles/postfix/templates/aliases
0 → 100644
View file @
40e67900
#
# {{ ansible_managed }}
#
root: root@ubuntu-it.org
# rfc2142:
abuse: root
noc: root
security: root
postmaster: root
hostmaster: root
webmaster: root
www: root
ftp: root
info: root
usenet: root
news: root
# other local accounts
www-data: root
ubuntu-it: root
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment