vhost path using inventory_hostname
This commit is contained in:
parent
928418fa63
commit
4d4793a8ca
@ -29,9 +29,9 @@
|
||||
group: "100999"
|
||||
|
||||
- name: Create NGINX vhost file
|
||||
copy:
|
||||
src: "nginx-vhost.conf"
|
||||
dest: "/home/{{ user.name }}/nginx/vhost.d"
|
||||
template:
|
||||
src: "nginx-vhost.j2"
|
||||
dest: "/home/{{ user.name }}/nginx/vhost.d/{{ inventory_hostname }}"
|
||||
owner: "100999"
|
||||
group: "100999"
|
||||
|
||||
@ -39,3 +39,5 @@
|
||||
template:
|
||||
src: "docker-compose.yml.j2"
|
||||
dest: "/home/{{ user.name }}/docker-compose.yml"
|
||||
owner: "100999"
|
||||
group: "100999"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user