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
|
- name: Listen to all interfaces
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/postfix/main.cf
|
path: /etc/postfix/main.cf
|
||||||
state: absent
|
state: absent
|
||||||
regexp: "^#?inet_interfaces = .*"
|
regexp: "^#?inet_interfaces = .*"
|
||||||
notify: restart postfix
|
notify: Restart postfix
|
||||||
|
|
||||||
- name: add relayed domains
|
- name: Add relayed domains
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/postfix/main.cf
|
path: /etc/postfix/main.cf
|
||||||
regexp: "^#?relay_domains = .*"
|
regexp: "^#?relay_domains = .*"
|
||||||
line: "relay_domains = $mydestination, {{ relay_domains|join(',') }}"
|
line: "relay_domains = $mydestination, {{ relay_domains | join(',') }}"
|
||||||
notify: restart postfix
|
notify: Restart postfix
|
||||||
|
|
Loading…
Add table
Reference in a new issue