Vhost dir

pull/14/head
Emilien Mantel 2015-11-05 15:38:18 +01:00
parent 9fcba824f5
commit bfe4a315f9
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,16 @@
state=directory state=directory
- name: FILE | Create root folders (foreach nginx_vhosts) - name: FILE | Create root folders (foreach nginx_vhosts)
file: >
path={{ nginx_root }}/{{ item.name if item.name is string else item.name[0] }}
state=directory
owner={{ item.owner | default('www-data') }}
group={{ item.group | default('www-data') }}
mode={{ item.mode | default('0755') }}
with_items: nginx_vhosts
when: item.root is not defined and item.template != '_proxy'
- name: FILE | Create root public folders (foreach nginx_vhosts)
file: > file: >
path={{ nginx_root }}/{{ item.name if item.name is string else item.name[0] }}/public path={{ nginx_root }}/{{ item.name if item.name is string else item.name[0] }}/public
state=directory state=directory