Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ansible
common
Commits
b24b7cb9
Commit
b24b7cb9
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Adjust root mail alias to function on both Debian and OpenBSD, updated the TODO list accordingly.
parent
cf71f5c5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+0
-1
0 additions, 1 deletion
README.rst
tasks/mail_forward.yml
+6
-1
6 additions, 1 deletion
tasks/mail_forward.yml
vars/main.yml
+3
-0
3 additions, 0 deletions
vars/main.yml
with
9 additions
and
2 deletions
README.rst
+
0
−
1
View file @
b24b7cb9
...
...
@@ -89,7 +89,6 @@ TODO
- collectd_agent.
- init (via module).
- ldap_login (with pam_mkhomedir).
- mail_forward (OpenBSD support?).
- ssh_ca.
- syslog_forwarding.
- Test.
...
...
This diff is collapsed.
Click to expand it.
tasks/mail_forward.yml
+
6
−
1
View file @
b24b7cb9
...
...
@@ -14,6 +14,11 @@
-
name
:
Set root mail alias
lineinfile
:
dest
:
'
/etc/
aliases'
dest
:
'
{{
aliases
_file[ansible_os_family]
}}
'
line
:
'
root:
{{
mail_root_alias
}}'
regexp
:
'
^root:'
register
:
root_alias
-
name
:
Update SMTPd database
when
:
ansible_os_family == 'OpenBSD' and root_alias.changed
command
:
/usr/sbin/makemap /etc/mail/aliases
This diff is collapsed.
Click to expand it.
vars/main.yml
+
3
−
0
View file @
b24b7cb9
...
...
@@ -53,3 +53,6 @@ ntp_pool:
ntpd_service
:
OpenBSD
:
ntpd
Debian
:
ntp
aliases_file
:
OpenBSD
:
/etc/mail/aliases
Debian
:
/etc/aliases
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment