ansibleify smtp

This commit is contained in:
2022-04-14 14:48:45 +02:00
parent aefa493b14
commit 40aab44dec
11 changed files with 19 additions and 23 deletions

View File

@ -6,12 +6,6 @@
name:
- postfix
- name: Install Postfix SASL credentials
template:
src: templates/sasl_passwd
mode: 600
dest: /etc/postfix/sasl_passwd
- name: Install Postfix mail gateway config
template:
src: templates/main.cf
@ -20,9 +14,6 @@
- name: Build /etc/mailname
shell: hostname --fqdn > /etc/mailname
- name: Build hashtable of SASL creds
command: postmap /etc/postfix/sasl_passwd
- name: Restart Postfix
service:
name: postfix