From 6dfaef66d0b36ad79090ed60a7f8aa9064fb1dc0 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 15 Sep 2017 12:57:05 +0200 Subject: [PATCH] nginx: create the directory defined by the variable nginx_client_body_temp_dir, when the variable has been defined. --- nginx/tasks/nginx-config.yml | 4 ++++ 1 file changed, 4 insertions(+) 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: