apt: name=needrestart state=latest default_release={{ansible_distribution_release}}-backports
- name: install some basic tools
apt: name=aptitude,rsync,git,mercurial,curl,apt-transport-https,psmisc,dnsutils,tree,htop state=latest
-# server-scripts
-- name: clone server-scripts git repository
- git:
- dest: /root/server-scripts
- repo: 'https://git.ralfj.de/server-scripts.git'
- version: 07d301fd8adeaf8ad40591a418da394ad37816ce
+# dh2048
+- name: create dh2048 file
+ command: openssl dhparam -out /etc/ssl/dh2048.pem 2048
+ args:
+ creates: "/etc/ssl/dh2048.pem"
# configuration
- name: configure root shell
copy:
+++ /dev/null
-postfix:
- paths:
- dh2048: /etc/ssl/dh2048.pem
-# base
-- name: create dh2048 file
- command: openssl dhparam -out {{ postfix.paths.dh2048 }} 2048
- args:
- creates: "{{ postfix.paths.dh2048 }}"
# daemons
- import_tasks: unbound.yml
tags: unbound
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_security_level = may
smtpd_tls_loglevel = 1
-smtpd_tls_dh1024_param_file = {{ postfix.paths.dh2048 }}
+smtpd_tls_dh1024_param_file = /etc/ssl/dh2048.pem
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_ciphers = low
smtpd_tls_mandatory_ciphers = high
prosody:
paths:
modules: /var/lib/prosody/modules
- dh2048: /etc/ssl/dh2048.pem
key = "/etc/ssl/private/letsencrypt/live.key";
certificate = "/etc/ssl/mycerts/letsencrypt/live.crt+chain";
ciphers = "ALL:!EXPORT:!LOW:!MEDIUM:!aNULL:!3DES";
- dhparam = "{{ prosody.paths.dh2048 }}";
+ dhparam = "/etc/ssl/dh2048.pem";
}
-- support legacy clients
legacy_ssl_ports = { 5223 }