parent
be90bd61ee
commit
5c4dfb5d2e
1 changed files with 11 additions and 7 deletions
@ -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…
Reference in new issue