minor service improvements

This commit is contained in:
2021-12-23 13:56:58 +01:00
parent 9c5b6dce9c
commit 0a3fc13f1e
2 changed files with 5 additions and 1 deletions

View File

@@ -5,11 +5,13 @@
git:
repo: https://src.mehl.mx/mxmehl/autoreply-editor.git
dest: autoreply-editor
notify: restart supervisord
- name: Deploy config file
template:
src: config.py.j2
dest: autoreply-editor/config.py
notify: restart supervisord
- name: Install specified python requirements
pip:
@@ -46,3 +48,5 @@
- name: update supervisord
command: supervisorctl update
listen: reload supervisord
- name: restart supervisord
command: supervisorctl restart autoreply-editor

View File

@@ -1,4 +1,4 @@
[program:autoreply-editor]
directory=/home/{{ ansible_user_id }}/autoreply-editor
command=gunicorn --bind 0.0.0.0:{{ port }} wsgi:app
startsecs=60
startsecs=5