mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2024-10-03 04:57:26 +02:00
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.
This commit is contained in:
parent
82575ce142
commit
8aa51642b4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user