proxmox: set mail relay

This commit is contained in:
Timotej Lazar 2024-09-10 10:11:13 +02:00
parent 9932064758
commit af81aae8bd
2 changed files with 14 additions and 0 deletions

View file

@ -57,6 +57,14 @@
| sort | unique | join(";") }}'
changed_when: false # maybe write a proper check if certificate requests are ever ansibled
- name: Set SMTP relay
lineinfile:
path: /etc/postfix/main.cf
regexp: '^relayhost ='
line: 'relayhost = {{ mail_relay }}'
notify: reload postfix
when: mail_relay is defined
- include_tasks: firewall.yml
- include_tasks: user.yml