Rename nginx_* variables underneath nginx_vhosts
It's just deduplication, since it's already obvious that the dict is for nginx-related vars: - nginx_domain_name→domain_name - nginx_domain_aliases→domain_aliases - nginx_enable_https→enable_https - nginx_enable_hsts→enable_hsts Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
tags: php5-fpm
|
||||
|
||||
- name: Copy php5-fpm pool config
|
||||
template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.nginx_domain_name }}.conf owner=root group=root mode=0644
|
||||
template: src=pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644
|
||||
with_items: nginx_vhosts
|
||||
when: nginx_vhosts is defined
|
||||
notify: restart php5-fpm
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% set domain_name = item.nginx_domain_name %}
|
||||
{% set domain_name = item.domain_name %}
|
||||
|
||||
; Start a new pool named '{{ domain_name }}'.
|
||||
; the variable $pool can we used in any directive and will be replaced by the
|
||||
|
Reference in New Issue
Block a user