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