nginx: create the directory defined by the variable nginx_client_body_temp_dir, when the variable has been defined.

This commit is contained in:
Andrea Dell'Amico 2017-09-15 12:57:05 +02:00
parent ce44423955
commit 6dfaef66d0
1 changed files with 4 additions and 0 deletions

View File

@ -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: