Browse Source

role reverse_proxy: notify reload on all changes

python3
Andrea Cimbalo 6 years ago
parent
commit
1a647f799b
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      roles/reverse_proxy/tasks/main.yaml

+ 4
- 1
roles/reverse_proxy/tasks/main.yaml View File

@ -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


Loading…
Cancel
Save