mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
First shot proxy (unstable)
This commit is contained in:
@@ -4,3 +4,7 @@
|
||||
template: src=etc/nginx/upstream/php.conf.j2 dest=/etc/nginx/conf.d/php.conf
|
||||
notify: reload nginx
|
||||
|
||||
- name: TEMPLATE | Deploy other upstreams
|
||||
template: src=etc/nginx/upstream/upstream.conf.j2 dest=/etc/nginx/conf.d/upstream-{{ item.name }}.conf
|
||||
with_items: nginx_upstreams
|
||||
notify: reload nginx
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
group={{ item.group | default('www-data') }}
|
||||
mode={{ item.mode | default('0755') }}
|
||||
with_items: nginx_vhosts
|
||||
when: item.root is not defined
|
||||
when: item.root is not defined and item.template != '_proxy'
|
||||
|
||||
- name: TEMPLATE | Create vhosts
|
||||
template: >
|
||||
|
||||
Reference in New Issue
Block a user