13 lines
289 B
YAML
13 lines
289 B
YAML
---
|
|
- name: template site
|
|
template:
|
|
src: templates/site.j2
|
|
dest: /etc/nginx/sites-available/{{ site }}
|
|
notify: reload nginx
|
|
|
|
- name: enable site
|
|
file:
|
|
src: ../sites-available/{{ site }}
|
|
dest: /etc/nginx/sites-enabled/{{ site }}
|
|
state: link
|
|
notify: reload nginx
|