Don't create directory if root specified

pull/2/head
Emilien Mantel 2015-07-16 16:31:21 +02:00
parent 1a2305973b
commit cb21e152b7
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
file: path={{ nginx_root }}/{{ item.name }} state=directory recurse=yes owner=www-data group=www-data mode=0755
file: path={{ nginx_root }}/{{ item.name }}/public state=directory recurse=yes owner=www-data group=www-data mode=0755
with_items: nginx_vhosts
when: item.root is not defined
- name: TEMPLATE | Create vhosts
template: src=etc/nginx/sites-available/{{ item.template }}.j2 dest=/etc/nginx/sites-available/{{ item.name }}