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

14 lines
365 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
- 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 }}