Shorten Jinja2 filter in postfix.yml

This commit is contained in:
Sam A. 2022-11-26 22:48:15 +01:00
parent e983499f9b
commit f3fd5c7c74
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -16,5 +16,5 @@
- name: postfix - name: postfix
env: env:
# Get all services which have allowed_sender_domain defined # Get all services which have allowed_sender_domain defined
ALLOWED_SENDER_DOMAINS: "{{ services | dict2items | selectattr('value.allowed_sender_domain', 'defined') | map(attribute='value.domain') | list | join(' ') }}" ALLOWED_SENDER_DOMAINS: "{{ services | dict2items | selectattr('value.allowed_sender_domain', 'true') | map(attribute='value.domain') | join(' ') }}"
HOSTNAME: "smtp.data.coop" # the name the smtp server will identify itself as HOSTNAME: "smtp.data.coop" # the name the smtp server will identify itself as