2015-07-15 21:26:27 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: TEMPLATE | Deploy PHP upstream to Nginx
|
2016-03-05 21:07:39 +07:00
|
|
|
template: >
|
|
|
|
src=etc/nginx/upstream/php.conf.j2
|
|
|
|
dest="{{ nginx_etc_dir }}/conf.d/php.conf"
|
2015-12-01 22:35:56 +07:00
|
|
|
when: nginx_php
|
2015-07-15 21:26:27 +07:00
|
|
|
notify: reload nginx
|
|
|
|
|
2015-10-08 23:21:40 +07:00
|
|
|
- name: TEMPLATE | Deploy other upstreams
|
2016-03-05 21:07:39 +07:00
|
|
|
template: >
|
|
|
|
src=etc/nginx/upstream/upstream.conf.j2
|
|
|
|
dest={{ nginx_etc_dir }}/conf.d/upstream-{{ item.name }}.conf
|
2016-03-05 17:37:37 +07:00
|
|
|
with_items: "{{ nginx_upstreams }}"
|
2015-10-08 23:21:40 +07:00
|
|
|
notify: reload nginx
|