From e55aa8028aa5cb6efa55b0f8cee14d62fe312421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa?= Date: Mon, 22 May 2017 15:42:41 +0200 Subject: [PATCH] fix dhparam condition; fix site creation condition --- tasks/configuration.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/configuration.yml b/tasks/configuration.yml index 4b31838..12db64a 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -13,7 +13,7 @@ when: nginx_dh_remove_old - name: Create {{ nginx_dh_bits }}bit Diffie-Hellman - command: "openssl dhparam {{ '-dsaparam' if nginx_dh_bits > 2048 }} -out {{ nginx_conf_dir }}/dhparam.pem {{ nginx_dh_bits }}" + command: "openssl dhparam {{ '-dsaparam' if nginx_dh_bits > 2048 else '' }} -out {{ nginx_conf_dir }}/dhparam.pem {{ nginx_dh_bits }}" args: creates: "{{ nginx_conf_dir }}/dhparam.pem" when: nginx_ssl_enable @@ -37,7 +37,6 @@ dest: "{{ nginx_conf_dir }}/sites-available/{{ item.key }}" backup: yes with_dict: "{{ nginx_sites }}" - when: item.key not in nginx_remove_sites notify: reload nginx - name: Create links for sites-enabled