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