Browse Source

dh params are now only generated if they do not already exist

Till Klocke 9 years ago
parent
commit
d3cdc29c23
1 changed files with 3 additions and 1 deletions
  1. 3 1
      roles/internal/ffdo.mapserver-nginx/tasks/main.yml

+ 3 - 1
roles/internal/ffdo.mapserver-nginx/tasks/main.yml

@@ -28,7 +28,9 @@
 
 - name: Generate strong dhparams
   when: not mapserver_use_pregenerated_dh_params
-  shell: openssl dhparam -out /etc/nginx/dhparams.pem 4096 creates=/etc/nginx/dhparams.pem
+  shell: openssl dhparam -out /etc/nginx/dhparams.pem 4096 
+  args:
+    creates: /etc/nginx/dhparams.pem
   notify:
   - Restart nginx