roles/php5-fpm: Use template for pools

Each vhost has a separate pool.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
2014-08-27 19:48:21 +03:00
parent 2afa1ef2f3
commit 0689153bd9
2 changed files with 8 additions and 5 deletions

View File

@ -10,7 +10,8 @@
tags: php5-fpm
- name: Copy php5-fpm pool config
copy: src=www.conf dest=/etc/php5/fpm/pool.d/www.conf owner=root group=root mode=0644
template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.nginx_domain_name }}.conf owner=root group=root mode=0644
with_items: nginx_vhosts
notify: restart php5-fpm
tags: php5-fpm