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

17 lines
420 B
YAML

---
- name: Copy over the Nginx configuration.
become: true
template:
src: books.vvvvvvaria.org.j2
dest: /etc/nginx/sites-available/books.vvvvvvaria.conf
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