feat: adapt smtprelay role for external use

This commit is contained in:
VC
2024-07-05 11:53:34 +02:00
parent da2b1c1156
commit 3faef4717a
6 changed files with 37 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
---
- name: Install stunnel
package:
name: stunnel4
state: present
- name: SMTP wrapper
template:
src: smtp-wrapper.conf.j2
dest: /etc/stunnel/smtp-wrapper.conf
mode: 0644
notify: Restart stunnel4
- name: Rewrite var smtprelay_host
set_fact:
smtprelay_host: "localhost"
- name: Rewrite var smtprelay_port
set_fact:
smtprelay_port: "2{{ smtprelay_port }}"