diff --git a/tasks/vhosts.yml b/tasks/vhosts.yml index 1be6394..70b37d0 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