Fix the dhparam download.

This commit is contained in:
Andrea Dell'Amico 2020-07-18 17:38:53 +02:00
parent b233f5c021
commit 352d74d22d
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
postfix_enabled: True
postfix_install_packages: True
postfix_install_packages: '{{ postfix_enabled }}'
postfix_relay_rh_pkgs:
- postfix

View File

@ -20,9 +20,7 @@
notify: Reload postfix
- name: Download a DHPARAM file from the mozilla ssl configurator site
get_url: url='https://ssl-config.mozilla.org/ffdhe2048.txt' dest={{ postfix_tls_dhparam_file }}
args:
creates: '{{ postfix_tls_dhparam_file }}'
get_url: url='https://ssl-config.mozilla.org/ffdhe2048.txt' dest={{ postfix_tls_dhparam_file }} force=no
when: postfix_tls_encryption_level != "old"
notify: Reload postfix