13 lines
470 B
YAML
13 lines
470 B
YAML
---
|
|
|
|
- name: "Create {{ item.destination }}"
|
|
ansible.builtin.copy:
|
|
dest: "{{ item.destination }}"
|
|
mode: 0644
|
|
content: |
|
|
{{ item.content }}
|
|
loop:
|
|
- {destination: "/etc/postfix/recipient_canonical", content: "/.+/ root@mateu.be"}
|
|
- {destination: "/etc/postfix/header_check", content: "/From:.*/ REPLACE From: root@{{ smtprelay_origin }}"}
|
|
- {destination: "/etc/postfix/sender_canonical_maps", content: "/.+/ root@{{ smtprelay_origin }}"}
|