Update to 2021-09-29 18:00

master
Daniel Berteaud 3 years ago
parent be90bd61ee
commit 5c4dfb5d2e
  1. 8
      roles/common/tasks/mail.yml

@ -1,11 +1,15 @@
--- ---
- name: Configure root email forward - when: system_admin_email is defined
block:
- name: Install postfix
package: name=postfix
- name: Configure root email forward
lineinfile: lineinfile:
dest: /etc/aliases dest: /etc/aliases
regexp: "^root:.*" regexp: "^root:.*"
line: "root: {{ system_admin_email }}" line: "root: {{ system_admin_email }}"
notify: newaliases notify: newaliases
when: system_admin_email is defined
... ...

Loading…
Cancel
Save