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:
2015-12-10 00:25:44 +02:00
parent 41547defb9
commit 940b2720da
6 changed files with 89 additions and 91 deletions

View File

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

View File

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