2015-08-30 15:34:47 +02:00
|
|
|
---
|
2018-11-07 22:22:57 +01:00
|
|
|
- name: template site
|
|
|
|
template:
|
|
|
|
src: templates/site.j2
|
|
|
|
dest: /etc/nginx/sites-available/{{ site }}
|
|
|
|
notify: reload nginx
|
2015-08-30 15:34:47 +02:00
|
|
|
|
2018-11-07 22:22:57 +01:00
|
|
|
- name: enable site
|
|
|
|
file:
|
|
|
|
src: ../sites-available/{{ site }}
|
|
|
|
dest: /etc/nginx/sites-enabled/{{ site }}
|
|
|
|
state: link
|
|
|
|
notify: reload nginx
|