瀏覽代碼

Merge pull request #60 from danlamanna/fix-nginx-vhost-path-customization

Create the Nginx vhost path directory
Jeff Geerling 8 年之前
父節點
當前提交
ee5cd31375
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tasks/vhosts.yml

+ 7 - 0
tasks/vhosts.yml

@@ -7,6 +7,13 @@
   notify:
   notify:
     - reload nginx
     - reload nginx
 
 
+- name: Create nginx_vhost_path directory.
+  file:
+    path: "{{ nginx_vhost_path }}"
+    state: directory
+  notify:
+    - reload nginx
+
 - name: Add managed vhost config file (if any vhosts are configured).
 - name: Add managed vhost config file (if any vhosts are configured).
   template:
   template:
     src: vhosts.j2
     src: vhosts.j2