postfix: ansible-lint fixes for relay.yml
This commit is contained in:
parent
07baea2078
commit
7b882304f4
1 changed files with 7 additions and 7 deletions
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
- name: listen to all interfaces
|
||||
lineinfile:
|
||||
- name: Listen to all interfaces
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/postfix/main.cf
|
||||
state: absent
|
||||
regexp: "^#?inet_interfaces = .*"
|
||||
notify: restart postfix
|
||||
notify: Restart postfix
|
||||
|
||||
- name: add relayed domains
|
||||
lineinfile:
|
||||
- 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
|
||||
line: "relay_domains = $mydestination, {{ relay_domains | join(',') }}"
|
||||
notify: Restart postfix
|
||||
|
|
Loading…
Add table
Reference in a new issue