ansible-config/roles/website/meta/tasks/main.yml

14 lines
289 B
YAML
Raw Normal View History

---
2018-11-07 22:36:43 +01:00
- name: template site
template:
src: templates/site.j2
dest: /etc/nginx/sites-available/{{ site }}
notify: reload nginx
2018-11-07 22:36:43 +01:00
- name: enable site
file:
src: ../sites-available/{{ site }}
dest: /etc/nginx/sites-enabled/{{ site }}
state: link
notify: reload nginx