2020-07-15 07:46:42 +02:00
|
|
|
---
|
2020-07-21 22:36:37 +02:00
|
|
|
- name: Copy conf of Nginx
|
|
|
|
template:
|
|
|
|
src: "nginx_note.conf"
|
|
|
|
dest: /etc/nginx/sites-available/nginx_note.conf
|
|
|
|
mode: 0644
|
|
|
|
owner: www-data
|
|
|
|
group: www-data
|
2020-07-15 09:27:11 +02:00
|
|
|
|
2020-07-21 22:36:37 +02:00
|
|
|
- name: Enable Nginx site
|
2020-07-15 07:46:42 +02:00
|
|
|
file:
|
2020-07-21 22:36:37 +02:00
|
|
|
src: /etc/nginx/sites-available/nginx_note.conf
|
2020-07-15 07:46:42 +02:00
|
|
|
dest: /etc/nginx/sites-enabled/nginx_note.conf
|
2020-07-21 22:36:37 +02:00
|
|
|
owner: www-data
|
|
|
|
group: www-data
|
2020-07-15 07:46:42 +02:00
|
|
|
state: link
|
|
|
|
|
2020-07-26 12:05:41 +02:00
|
|
|
- name: Disable default Nginx site
|
|
|
|
file:
|
|
|
|
dest: /etc/nginx/sites-enabled/default
|
|
|
|
state: absent
|
|
|
|
|
2020-07-21 22:36:37 +02:00
|
|
|
- name: Copy conf of UWSGI
|
2020-07-15 07:46:42 +02:00
|
|
|
file:
|
2020-07-15 09:27:11 +02:00
|
|
|
src: /var/www/note_kfet/uwsgi_note.ini
|
2020-07-15 07:46:42 +02:00
|
|
|
dest: /etc/uwsgi/apps-enabled/uwsgi_note.ini
|
|
|
|
state: link
|
2020-07-15 10:09:28 +02:00
|
|
|
|
|
|
|
- name: Reload Nginx
|
|
|
|
systemd:
|
|
|
|
name: nginx
|
|
|
|
state: reloaded
|
|
|
|
|
|
|
|
- name: Restart UWSGI
|
|
|
|
systemd:
|
|
|
|
name: uwsgi
|
|
|
|
state: restarted
|