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
|
name: nginx
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: create nginx data directories
|
- name: create nginx data and config directories
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -15,6 +15,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- /srv/web
|
- /srv/web
|
||||||
- "/srv/web/{{ inventory_hostname }}"
|
- "/srv/web/{{ inventory_hostname }}"
|
||||||
|
- "/etc/nginx/conf.d/{{ inventory_hostname }}"
|
||||||
|
|
||||||
- name: create nginx base config
|
- name: create nginx base config
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Add table
Reference in a new issue