Skip to content
Snippets Groups Projects
Commit acd8e3da authored by shirenn's avatar shirenn 🌊 Committed by shirenn
Browse files

[nullmailer] PEPCRANSED BRO

parent bb5e69f0
No related branches found
No related tags found
1 merge request!209[nullmailer] PEPCRANSED BRO
---
glob_nullmailer:
root: root@crans.org
smtp_server: smtp.adm.crans.org
defaulthost: crans.org
#!/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
......@@ -11,18 +11,18 @@
- name: Set nullmailer remotes
copy:
content: "{{ mail_smtp_server }} smtp\n"
content: "{{ nullmailer.smtp_server }} smtp\n"
dest: /etc/nullmailer/remotes
mode: 0644
- name: Set nullmailer adminaddr
copy:
content: "{{ mail_root }}\n"
content: "{{ nullmailer.root }}\n"
dest: /etc/nullmailer/adminaddr
mode: 0644
- name: Set nullmailer defaulthost
copy:
content: "{{ mail_defaulthost }}\n"
content: "{{ nullmailer.defaulthost }}\n"
dest: /etc/nullmailer/defaulthost
mode: 0644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment