Reload nginx with acme.sh

Sometimes fu****** systemd don't want you to restart nginx in a loop. I
t crashes the role.
py3
Emilien Mantel 2019-04-30 16:45:14 +02:00
parent 39d3f5f06a
commit cf010e4a4b
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@
--install-cert -d {{ item | nginx_site_name }}
--fullchain-file {{ nginx_ssl_dir }}/{{ item | nginx_site_name }}/{{ item | nginx_site_name }}.crt
--key-file {{ nginx_ssl_dir }}/{{ item | nginx_site_name }}/{{ item | nginx_site_name }}.key
--reloadcmd "service nginx restart"
--reloadcmd "service nginx reload"
args:
creates: "{{ nginx_ssl_dir }}/{{ item | nginx_site_name }}/{{ item | nginx_site_name }}.key"
loop: "{{ nginx_ssl_pairs }}"