|
@ -24,6 +24,7 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
delegate_to: reverse_proxy |
|
|
delegate_to: reverse_proxy |
|
|
|
|
|
notify: reload nginx |
|
|
|
|
|
|
|
|
- name: add http configs to nginx |
|
|
- name: add http configs to nginx |
|
|
lineinfile: |
|
|
lineinfile: |
|
@ -31,12 +32,14 @@ |
|
|
insertafter: '^http {' |
|
|
insertafter: '^http {' |
|
|
line: 'include /etc/nginx/http.conf.d/*.conf;' |
|
|
line: 'include /etc/nginx/http.conf.d/*.conf;' |
|
|
delegate_to: reverse_proxy |
|
|
delegate_to: reverse_proxy |
|
|
|
|
|
notify: reload nginx |
|
|
|
|
|
|
|
|
- name: Create the http.conf directory for nginx |
|
|
- name: Create the http.conf directory for nginx |
|
|
file: |
|
|
file: |
|
|
state: directory |
|
|
state: directory |
|
|
dest: "/etc/nginx/http.conf.d" |
|
|
dest: "/etc/nginx/http.conf.d" |
|
|
delegate_to: reverse_proxy |
|
|
delegate_to: reverse_proxy |
|
|
|
|
|
notify: reload nginx |
|
|
|
|
|
|
|
|
- name: Upload http to reverse proxy |
|
|
- name: Upload http to reverse proxy |
|
|
template: |
|
|
template: |
|
@ -50,6 +53,7 @@ |
|
|
state: directory |
|
|
state: directory |
|
|
dest: "/etc/nginx/map.conf.d" |
|
|
dest: "/etc/nginx/map.conf.d" |
|
|
delegate_to: reverse_proxy |
|
|
delegate_to: reverse_proxy |
|
|
|
|
|
notify: reload nginx |
|
|
|
|
|
|
|
|
- name: Create the upstream.conf directory for nginx |
|
|
- name: Create the upstream.conf directory for nginx |
|
|
file: |
|
|
file: |
|
@ -58,7 +62,6 @@ |
|
|
delegate_to: reverse_proxy |
|
|
delegate_to: reverse_proxy |
|
|
notify: reload nginx |
|
|
notify: reload nginx |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload mappings to reverse proxy |
|
|
- name: Upload mappings to reverse proxy |
|
|
template: |
|
|
template: |
|
|
src: map.j2 |
|
|
src: map.j2 |
|
|