Don't create directory if root specified
parent
1a2305973b
commit
cb21e152b7
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue