mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Don't create directory if root specified
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user