2020-07-15 05:46:42 +00:00
|
|
|
---
|
2020-07-15 07:27:11 +00:00
|
|
|
- name: Copy example conf of Nginx
|
|
|
|
command: cp /var/www/note_kfet/nginx_note.conf_example /var/www/note_kfet/nginx_note.conf
|
|
|
|
|
2020-07-15 05:46:42 +00:00
|
|
|
- name: Update Nginx conf
|
|
|
|
replace:
|
2020-07-15 07:27:11 +00:00
|
|
|
path: /var/www/note_kfet/nginx_note.conf
|
2020-07-15 05:46:42 +00:00
|
|
|
regexp: 'note.example.org'
|
|
|
|
replace: 'bde-nk20-beta.adh.crans.org'
|
|
|
|
|
|
|
|
- name: Copy conf to Nginx
|
|
|
|
file:
|
2020-07-15 07:27:11 +00:00
|
|
|
src: /var/www/note_kfet/nginx_note.conf
|
2020-07-15 05:46:42 +00:00
|
|
|
dest: /etc/nginx/sites-enabled/nginx_note.conf
|
|
|
|
state: link
|
|
|
|
|
|
|
|
- name: Copy conf to UWSGI
|
|
|
|
file:
|
2020-07-15 07:27:11 +00:00
|
|
|
src: /var/www/note_kfet/uwsgi_note.ini
|
2020-07-15 05:46:42 +00:00
|
|
|
dest: /etc/uwsgi/apps-enabled/uwsgi_note.ini
|
|
|
|
state: link
|