vhost.filename used by log and directories creation

This commit is contained in:
Emilien Mantel
2016-10-07 10:50:05 +02:00
parent 8789bd2c9c
commit c4ee6eb1a2
3 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@
- name: FILE | Create root public folders (foreach nginx_vhosts)
file: >
path={{ nginx_root }}/{{ item.name if item.name is string else item.name[0] }}/public
path={{ nginx_root }}/{{ item.filename | default(item.name if item.name is string else item.name[0]) }}/public
state=directory
owner={{ item.owner | default(nginx_user) }}
group={{ item.group | default(nginx_user) }}