소스 검색

Create the Nginx vhost path directory

In particular, the default /usr/local/etc/nginx/sites-enabled directory does not
exist on installation of Nginx on FreeBSD.
Dan LaManna 9 년 전
부모
커밋
8aa51642b4
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      tasks/vhosts.yml

+ 7 - 0
tasks/vhosts.yml

@@ -7,6 +7,13 @@
   notify:
     - 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).
   template:
     src: vhosts.j2