From 94a89d8d784599252d20ef401c6ba60da49fd523 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 15 Apr 2018 11:38:51 -0500 Subject: [PATCH] smtp-relay: PB to deploy Postfix SMTP relay The `smtp-relay.yml` playbook configures Postfix on the managed node as an SMTP relay. --- group_vars/smtp-relay.yml | 8 ++++++++ hosts | 2 ++ smtp-relay.yml | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 group_vars/smtp-relay.yml create mode 100644 smtp-relay.yml diff --git a/group_vars/smtp-relay.yml b/group_vars/smtp-relay.yml new file mode 100644 index 0000000..0efecd3 --- /dev/null +++ b/group_vars/smtp-relay.yml @@ -0,0 +1,8 @@ +smtp: + mode: relay + host: mail.pyrocufflink.net + port: 587 + auth: plain + username: '{{ smtp_username }}' + password: '{{ smtp_password }}' + security: starttls diff --git a/hosts b/hosts index fe8b6b6..54bfeaa 100644 --- a/hosts +++ b/hosts @@ -50,3 +50,5 @@ dns0.pyrocufflink.blue [zabbix:children] zabbix-server + +[smtp-relay] diff --git a/smtp-relay.yml b/smtp-relay.yml new file mode 100644 index 0000000..7960af7 --- /dev/null +++ b/smtp-relay.yml @@ -0,0 +1,3 @@ +- hosts: smtp-relay + roles: + - postfix