2014-11-18 08:24:39 -05:00
|
|
|
---
|
|
|
|
- hosts: all
|
2014-11-19 19:20:27 -05:00
|
|
|
vars:
|
|
|
|
web_server_home: /srv/www
|
|
|
|
uwsgi_venv: "{{ web_server_home }}/uwsgi"
|
|
|
|
rookeries_uwsgi_ini: rookeries-uwsgi.ini
|
2014-11-18 08:24:39 -05:00
|
|
|
tasks:
|
|
|
|
|
2014-11-19 19:20:27 -05:00
|
|
|
- name: PIP install mailsink test server into target virtualenv
|
|
|
|
pip: name=uwsgi virtualenv={{ uwsgi_venv }} version=2.0
|
|
|
|
|
|
|
|
- name: Upload rookeries UWSGI configuration to web server home
|
|
|
|
copy: src=../config/uwsgi/{{ rookeries_uwsgi_ini }} dest={{ web_server_home }}
|
|
|
|
|
|
|
|
# - name: Launches the UWSGI daemon
|
|
|
|
# command: "{{ uwsgi_venv }}/bin/uwsgi --ini {{ web_server_home }}/{{ rookeries_uwsgi_ini }}"
|