2021-12-01 19:13:34 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- when: system_admin_email is defined
|
|
|
|
block:
|
|
|
|
- name: Install postfix
|
|
|
|
package: name=postfix
|
|
|
|
|
|
|
|
- name: Configure root email forward
|
|
|
|
lineinfile:
|
|
|
|
dest: /etc/aliases
|
|
|
|
regexp: "^root:.*"
|
|
|
|
line: "root: {{ system_admin_email }}"
|
|
|
|
notify: newaliases
|
|
|
|
|
2022-01-04 13:00:10 +01:00
|
|
|
tags: postfix,mail
|
|
|
|
|
2021-12-01 19:13:34 +01:00
|
|
|
...
|