diff --git a/nginx/tasks/nginx-config.yml b/nginx/tasks/nginx-config.yml index 6edd9d53..5e7c5efc 100644 --- a/nginx/tasks/nginx-config.yml +++ b/nginx/tasks/nginx-config.yml @@ -6,6 +6,10 @@ - name: Create the pki directory file: dest={{ pki_dir }}/nginx state=directory + - name: Create the client body tmp directory, if needed + file: dest={{ nginx_client_body_temp_dir }}/nginx state=directory owner=www-data group=www-data mode=0700 + when: nginx_client_body_temp_dir is defined + - name: Create a dhparams file 2048 bits long shell: openssl dhparam -out {{ pki_dir }}/nginx/dhparams.pem 2048 args: