2018-11-18 18:33:40 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Copy over the Nginx configuration.
|
|
|
|
become: true
|
|
|
|
template:
|
|
|
|
src: books.vvvvvvaria.org.j2
|
2018-11-18 19:00:57 +01:00
|
|
|
dest: /etc/nginx/sites-available/books.vvvvvvaria.conf
|
2018-11-18 18:33:40 +01:00
|
|
|
mode: 0644
|
|
|
|
notify: Reload Nginx.
|
2018-11-18 19:00:57 +01:00
|
|
|
|
|
|
|
- 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
|