Skip to content

Commit

Permalink
Improve management of additional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeto committed Jul 14, 2020
1 parent 3ae57ad commit c4431fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ mta_config_files_all: []
mta_config_files: []

# Additional parameters
mta_parameters_all: {}
mta_parameters: {}

# Additional services
Expand Down
2 changes: 1 addition & 1 deletion templates/postfix/main.cf
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ message_size_limit = {{ mta_message_size_limit }}
unverified_recipient_reject_code = {{ mta_unverified_recipient_reject_code }}
{% endif %}

{% for key, value in mta_parameters|dictsort -%}
{% for key, value in mta_parameters_all|combine(mta_parameters)|dictsort -%}
{{ key }}=
{%- if value is mapping -%}
inline:{ {{ value | dictsort | map('join', ' = ') | map('regex_replace', '^(.*)$', '{ \\1 }') | join(', ') }} }
Expand Down

0 comments on commit c4431fe

Please sign in to comment.