xppl/ansible/roles/nginx/tasks/main.yml

17 lines
420 B
YAML
Raw Normal View History

2018-11-18 18:33:40 +01:00
---
- name: Copy over the Nginx configuration.
become: true
template:
src: books.vvvvvvaria.org.j2
dest: /etc/nginx/sites-available/books.vvvvvvaria.conf
2018-11-18 18:33:40 +01:00
mode: 0644
notify: Reload Nginx.
- name: Symlink the configuration into the enabled folder.
become: true
file:
src: /etc/nginx/sites-available/books.vvvvvvaria.conf
path: /etc/nginx/sites-enabled/books.vvvvvvaria.conf
state: link