Only create DH param file when using ssl.

This commit is contained in:
Markus 2016-11-19 22:24:21 +01:00
parent 8aa3a6c806
commit 3b1ab3877d
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@
- name: Create DH parameters
command: openssl dhparam -outform PEM -out {{ item }} 2048 creates={{ item }}
when: nginx_ssl == True
with_items:
- /etc/nginx/dhparam.pem