Wordpress download / Vhost config

This commit is contained in:
David Petric
2023-03-27 18:24:16 +02:00
parent 2d6606c0a4
commit 009993e3a0
6 changed files with 69 additions and 5 deletions

View File

@ -1,7 +1,13 @@
---
- name: Create wwwroot
file:
path: /var/www/{{ vhost_name }}
state: directory
mode: '0755'
- name: Prepare config file
copy:
src: files/web-{{ vhost_name }}.conf
template:
src: files/vhost.conf.j2
dest: /etc/nginx/sites-available/web-{{ vhost_name }}.conf
- name: Create a symbolic link