First shot proxy (unstable)

This commit is contained in:
Emilien Mantel
2015-10-08 18:21:40 +02:00
parent a9a898e910
commit 96bbc47d27
8 changed files with 84 additions and 1 deletions

View File

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

View File

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