2023-10-25 22:26:17 +02:00
|
|
|
---
|
2023-10-31 11:37:50 +01:00
|
|
|
- name: reload postfix
|
2023-10-25 22:26:17 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: postfix
|
|
|
|
enabled: true
|
|
|
|
state: restarted
|
2023-10-31 11:37:50 +01:00
|
|
|
notify: send testmail
|
2023-10-25 22:26:17 +02:00
|
|
|
|
2023-10-31 11:37:50 +01:00
|
|
|
- name: send testmail # noqa no-changed-when
|
2023-10-25 22:26:17 +02:00
|
|
|
ansible.builtin.shell:
|
2023-10-31 11:37:50 +01:00
|
|
|
cmd: "set -o pipefail && echo 'postfix ist eingerichtet' | mail -s '{{ ansible_hostname }} - postfix' {{ my_mail }}"
|
2023-10-25 22:26:17 +02:00
|
|
|
executable: /bin/bash
|