Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Nounous
Ansible
Commits
acd8e3da
Commit
acd8e3da
authored
4 years ago
by
shirenn
🌊
Committed by
shirenn
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[nullmailer] PEPCRANSED BRO
parent
bb5e69f0
No related branches found
No related tags found
1 merge request
!209
[nullmailer] PEPCRANSED BRO
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
group_vars/all/nullmailer.yml
+5
-0
5 additions, 0 deletions
group_vars/all/nullmailer.yml
plays/mail.yml
+3
-10
3 additions, 10 deletions
plays/mail.yml
roles/nullmailer/tasks/main.yml
+3
-3
3 additions, 3 deletions
roles/nullmailer/tasks/main.yml
with
11 additions
and
13 deletions
group_vars/all/nullmailer.yml
0 → 100644
+
5
−
0
View file @
acd8e3da
---
glob_nullmailer
:
root
:
root@crans.org
smtp_server
:
smtp.adm.crans.org
defaulthost
:
crans.org
This diff is collapsed.
Click to expand it.
plays/mail.yml
+
3
−
10
View file @
acd8e3da
#!/usr/bin/env ansible-playbook
---
# Redisdead is the main MX.
# Soyouz and titanic are the old backup MX.
# Boeing and sputnik are the new MX (still in installation ?).
# All other servers uses nullmailer to send local mail to Crans SMTP.
# Redirect local mail to mailserver
-
hosts
:
crans_server,!postfix
vars
:
mail_root
:
root@crans.org
mail_smtp_server
:
smtp.adm.crans.org
mail_defaulthost
:
crans.org
roles
:
[
"
nullmailer"
]
nullmailer
:
"
{{
glob_nullmailer
|
default({})
|
combine(loc_nullmailer
|
default({}))
}}"
roles
:
-
nullmailer
This diff is collapsed.
Click to expand it.
roles/nullmailer/tasks/main.yml
+
3
−
3
View file @
acd8e3da
...
...
@@ -11,18 +11,18 @@
-
name
:
Set nullmailer remotes
copy
:
content
:
"
{{
mail
_
smtp_server
}}
smtp
\n
"
content
:
"
{{
null
mail
er.
smtp_server
}}
smtp
\n
"
dest
:
/etc/nullmailer/remotes
mode
:
0644
-
name
:
Set nullmailer adminaddr
copy
:
content
:
"
{{
mail
_
root
}}
\n
"
content
:
"
{{
null
mail
er.
root
}}
\n
"
dest
:
/etc/nullmailer/adminaddr
mode
:
0644
-
name
:
Set nullmailer defaulthost
copy
:
content
:
"
{{
mail
_
defaulthost
}}
\n
"
content
:
"
{{
null
mail
er.
defaulthost
}}
\n
"
dest
:
/etc/nullmailer/defaulthost
mode
:
0644
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