mirror of
https://github.com/dev-sec/ansible-nginx-hardening.git
synced 2024-11-22 19:42:02 +01:00
add spaces to variables
This commit is contained in:
parent
456d9c25b1
commit
d7cedf51e2
@ -27,7 +27,7 @@
|
||||
lineinfile:
|
||||
dest: "/etc/nginx/nginx.conf"
|
||||
regexp: '^\s*ssl_protocols'
|
||||
line: " ssl_protocols {{nginx_ssl_protocols}};"
|
||||
line: " ssl_protocols {{ nginx_ssl_protocols }};"
|
||||
insertafter: "http {"
|
||||
notify: restart nginx
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
lineinfile:
|
||||
dest: "/etc/nginx/nginx.conf"
|
||||
regexp: '^\s*ssl_prefer_server_ciphers'
|
||||
line: " ssl_prefer_server_ciphers {{nginx_ssl_prefer_server_ciphers}};"
|
||||
line: " ssl_prefer_server_ciphers {{ nginx_ssl_prefer_server_ciphers }};"
|
||||
insertafter: "http {"
|
||||
notify: restart nginx
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
- "/etc/nginx/sites-enabled/default"
|
||||
|
||||
- name: generate dh group
|
||||
command: "openssl dhparam -out /etc/nginx/dh{{nginx_dh_size}}.pem {{ nginx_dh_size }}"
|
||||
command: "openssl dhparam -out /etc/nginx/dh{{ nginx_dh_size }}.pem {{ nginx_dh_size }}"
|
||||
args:
|
||||
creates: "/etc/nginx/dh{{nginx_dh_size}}.pem"
|
||||
creates: "/etc/nginx/dh{{ nginx_dh_size }}.pem"
|
||||
notify: restart nginx
|
||||
|
Loading…
Reference in New Issue
Block a user