14 lines
408 B
YAML
14 lines
408 B
YAML
---
|
|
- name: Listen to all interfaces
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/postfix/main.cf
|
|
state: absent
|
|
regexp: "^#?inet_interfaces = .*"
|
|
notify: Restart postfix
|
|
|
|
- name: Add relayed domains
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/postfix/main.cf
|
|
regexp: "^#?relay_domains = .*"
|
|
line: "relay_domains = $mydestination, {{ relay_domains | join(',') }}"
|
|
notify: Restart postfix
|