2014-11-18 08:24:39 -05:00
|
|
|
---
|
|
|
|
- hosts: all
|
2014-11-25 23:08:21 -05:00
|
|
|
sudo: yes
|
2014-11-19 19:20:27 -05:00
|
|
|
vars:
|
|
|
|
web_server_home: /srv/www
|
|
|
|
rookeries_venv: "{{ web_server_home }}/rookeries"
|
|
|
|
rookeries_package: rookeries-0.4.0.tar.bz2
|
2014-11-18 08:24:39 -05:00
|
|
|
tasks:
|
|
|
|
|
2014-11-25 23:08:21 -05:00
|
|
|
- name: upload + extract rookeries package to web server home
|
|
|
|
unarchive: src=../../../{{ rookeries_package }} dest={{ web_server_home }}
|
2014-11-19 19:20:27 -05:00
|
|
|
|
2014-11-25 23:08:21 -05:00
|
|
|
- name: pip install rookeries dependencies into target virtualenv
|
|
|
|
pip: requirements=rookeries_webapp/requirements.txt virtualenv={{ rookeries_venv }} chdir={{ web_server_home }}
|
2014-11-19 19:20:27 -05:00
|
|
|
|
|
|
|
- name: PIP install extra MySQL python connector dependency
|
|
|
|
pip: name=mysql-connector-python virtualenv={{ rookeries_venv }} version=1.1.6
|
|
|
|
extra_args='--allow-external mysql-connector-python --allow-unverified mysql-connector-python'
|
|
|
|
|
2014-11-18 08:24:39 -05:00
|
|
|
# TODO Step 4 - Setup environment variables on target system related to config.
|