proxmox: set mail relay
This commit is contained in:
parent
9932064758
commit
2e3d7d180d
2 changed files with 13 additions and 0 deletions
|
@ -57,6 +57,13 @@
|
|||
| 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 | default("") }}'
|
||||
notify: reload postfix
|
||||
|
||||
- include_tasks: firewall.yml
|
||||
|
||||
- include_tasks: user.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue