Заставил nginx перечитывать конфигурацию, если были какие-то изменения

This commit is contained in:
2019-07-30 12:53:07 +03:00
parent d6182b7600
commit 6e3ed0aee6
2 changed files with 8 additions and 1 deletions

View File

@@ -1,2 +1,7 @@
---
# handlers file for kemko.frontend-nginx
- name: Reload nginx
systemd:
name: nginx
state: reloaded
when: nginx_start

View File

@@ -35,6 +35,8 @@
template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
notify: Reload nginx
tags: ["configs"]
- name: "Download upstreams config"
get_url: