From 8aa51642b40bd52a00db6a3b10b8d3f14f6095e2 Mon Sep 17 00:00:00 2001 From: Dan LaManna Date: Sat, 4 Jun 2016 02:03:11 -0400 Subject: [PATCH] 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. --- tasks/vhosts.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/vhosts.yml b/tasks/vhosts.yml index 583ff77..81cff24 100644 --- a/tasks/vhosts.yml +++ b/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