From f8752bb3e7cd418f61f46ff5cd2c8e756bff5ed8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 27 Sep 2021 12:05:53 +0300 Subject: [PATCH] roles/nginx: add todo about document roots We assume it's always /var/www/$domain_name but it can be overriden in the host_vars... --- roles/nginx/tasks/vhosts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/nginx/tasks/vhosts.yml b/roles/nginx/tasks/vhosts.yml index c18127b..511d844 100644 --- a/roles/nginx/tasks/vhosts.yml +++ b/roles/nginx/tasks/vhosts.yml @@ -20,6 +20,7 @@ notify: - reload nginx + # TODO: this could break because we can override the document root in host vars - name: Create vhost document roots file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory mode=0755 owner=nginx group=nginx loop: "{{ nginx_vhosts }}"