ansible-config/roles/website/updates/tasks/main.yml
2017-02-18 14:57:09 +01:00

13 lines
297 B
YAML

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