Skip to content

Commit

Permalink
fix dhparam condition; fix site creation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Krupa committed May 22, 2017
1 parent b200bf8 commit e55aa80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e55aa80

Please sign in to comment.