mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 03:40:18 +01:00
Attempting to create nginx vhost folder
This commit is contained in:
parent
b227794489
commit
07fa5384f8
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@
|
||||||
notify:
|
notify:
|
||||||
- reload nginx
|
- reload nginx
|
||||||
|
|
||||||
|
- name: Creates Nginx vhost directory
|
||||||
|
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ nginx_user }} group={{ nginx_user }} mode=0775 recurse=yes
|
||||||
|
when: nginx_vhosts|length > 0
|
||||||
|
notify:
|
||||||
|
- reload nginx
|
||||||
|
|
||||||
- name: Remove managed vhost config file (if no vhosts are configured).
|
- name: Remove managed vhost config file (if no vhosts are configured).
|
||||||
file:
|
file:
|
||||||
path: "{{ nginx_vhost_path }}/vhosts.conf"
|
path: "{{ nginx_vhost_path }}/vhosts.conf"
|
||||||
|
|
Loading…
Reference in a new issue