13 lines
365 B
YAML
13 lines
365 B
YAML
- name: create_db_passwordfile
|
|
become: yes
|
|
command: /usr/sbin/postmap hash:/etc/postfix/sasl_passwd
|
|
|
|
- name: postfix_reload
|
|
become: yes
|
|
systemd:
|
|
name: postfix
|
|
enabled: yes
|
|
state: restarted
|
|
|
|
- name: postfix_testmail
|
|
shell: echo "postfix ist eingerichtet" | mail -s "{{ ansible_hostname }} - postfix" {{ empfaenger_mail }}
|