create site directory in /etc/nginx/conf.d
This commit is contained in:
parent
c2eb946825
commit
87744518c7
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
name: nginx
|
||||
state: installed
|
||||
|
||||
- name: create nginx data directories
|
||||
- name: create nginx data and config directories
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ item }}"
|
||||
|
@ -15,6 +15,7 @@
|
|||
with_items:
|
||||
- /srv/web
|
||||
- "/srv/web/{{ inventory_hostname }}"
|
||||
- "/etc/nginx/conf.d/{{ inventory_hostname }}"
|
||||
|
||||
- name: create nginx base config
|
||||
template:
|
||||
|
|
Loading…
Add table
Reference in a new issue