From 1a647f799b51cd51ffc4fc1512fab910290109d2 Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Sun, 23 Sep 2018 19:45:03 +0200 Subject: [PATCH] role reverse_proxy: notify reload on all changes --- roles/reverse_proxy/tasks/main.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/reverse_proxy/tasks/main.yaml b/roles/reverse_proxy/tasks/main.yaml index a720a2a..814f084 100644 --- a/roles/reverse_proxy/tasks/main.yaml +++ b/roles/reverse_proxy/tasks/main.yaml @@ -24,6 +24,7 @@ } delegate_to: reverse_proxy + notify: reload nginx - name: add http configs to nginx lineinfile: @@ -31,12 +32,14 @@ insertafter: '^http {' line: 'include /etc/nginx/http.conf.d/*.conf;' delegate_to: reverse_proxy + notify: reload nginx - name: Create the http.conf directory for nginx file: state: directory dest: "/etc/nginx/http.conf.d" delegate_to: reverse_proxy + notify: reload nginx - name: Upload http to reverse proxy template: @@ -50,6 +53,7 @@ state: directory dest: "/etc/nginx/map.conf.d" delegate_to: reverse_proxy + notify: reload nginx - name: Create the upstream.conf directory for nginx file: @@ -58,7 +62,6 @@ delegate_to: reverse_proxy notify: reload nginx - - name: Upload mappings to reverse proxy template: src: map.j2