mirror of
https://github.com/kemko/frontend-nginx-role.git
synced 2026-01-01 15:45:43 +03:00
Заставил nginx перечитывать конфигурацию, если были какие-то изменения
This commit is contained in:
@@ -1,2 +1,7 @@
|
|||||||
---
|
---
|
||||||
# handlers file for kemko.frontend-nginx
|
|
||||||
|
- name: Reload nginx
|
||||||
|
systemd:
|
||||||
|
name: nginx
|
||||||
|
state: reloaded
|
||||||
|
when: nginx_start
|
||||||
|
|||||||
@@ -35,6 +35,8 @@
|
|||||||
template:
|
template:
|
||||||
src: nginx.conf.j2
|
src: nginx.conf.j2
|
||||||
dest: /etc/nginx/nginx.conf
|
dest: /etc/nginx/nginx.conf
|
||||||
|
notify: Reload nginx
|
||||||
|
tags: ["configs"]
|
||||||
|
|
||||||
- name: "Download upstreams config"
|
- name: "Download upstreams config"
|
||||||
get_url:
|
get_url:
|
||||||
|
|||||||
Reference in New Issue
Block a user