add web root to nginx

This commit is contained in:
2026-02-03 21:49:07 -07:00
parent 1cda8d25b7
commit 9f4aae6a2e

View File

@@ -26,6 +26,14 @@
notify: Restart nginx notify: Restart nginx
when: nginx_ssl_enabled when: nginx_ssl_enabled
- name: Create web root
file:
path: /srv/http/{{ inventory_hostname }}/html
state: directory
owner: nginx
group: nginx
mode: '0755'
- name: Start and enable nginx - name: Start and enable nginx
service: service:
name: nginx name: nginx