homeserver/roles/mgrote.postfix/handlers/main.yml

20 lines
507 B
YAML
Raw Normal View History

---
- name: hash_sasl_passwd
2020-08-18 11:57:53 +02:00
become: yes
command: /usr/sbin/postmap hash:/etc/postfix/sasl_passwd
- name: hash_sender_canonical
become: yes
command: /usr/sbin/postmap hash:/etc/postfix/sender_canonical
2020-08-18 11:57:53 +02:00
- name: postfix_reload
become: yes
systemd:
name: postfix
enabled: yes
state: restarted
notify: postfix_testmail
2020-08-18 11:57:53 +02:00
- name: postfix_testmail
shell: echo "postfix ist eingerichtet" | mail -s "{{ ansible_hostname }} - postfix" {{ empfaenger_mail }}