Add installation of bower dependencies step, that was missed in earlier iterations of the provisioning setup.
Add task install external role for setting up NGINX, UWSGI and Supervisord.
This commit is contained in:
parent
ad04c4cc01
commit
cca2c28694
|
@ -23,3 +23,8 @@
|
||||||
state=directory recurse=yes
|
state=directory recurse=yes
|
||||||
|
|
||||||
# TODO Step 4 - Setup environment variables on target system related to config.
|
# TODO Step 4 - Setup environment variables on target system related to config.
|
||||||
|
|
||||||
|
- name: install bower dependencies in app
|
||||||
|
command: bower install --allow-root --quiet chdir={{ web_server_home }}/rookeries_webapp
|
||||||
|
# TODO Replace with bower command in future version of Ansible (1.9.0)
|
||||||
|
# bower: path={{ web_server_home }}/rookeries_webapp state=present
|
||||||
|
|
|
@ -3,8 +3,11 @@
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- { role: ansible-nginx-uwsgi-supervisor, app_name: rookeries, nginx_hostname: localhost,
|
- { role: ansible-nginx-uwsgi-supervisor,
|
||||||
uwsgi_port: 8001, uwsgi_app_executable: "rookeries:make_rookeries_app()" }
|
app_name: rookeries,
|
||||||
|
app_nginx_hostname: localhost,
|
||||||
|
app_uwsgi_port: 8001,
|
||||||
|
app_uwsgi_executable: "rookeries:make_rookeries_app()" }
|
||||||
tasks:
|
tasks:
|
||||||
- include: pre_deployment/base_linux.yaml
|
- include: pre_deployment/base_linux.yaml
|
||||||
- include: pre_deployment/mysql_db.yaml
|
- include: pre_deployment/mysql_db.yaml
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
|
- git
|
||||||
|
|
||||||
- name: link nodejs binary correctly
|
- name: link nodejs binary correctly
|
||||||
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
||||||
|
@ -13,3 +14,4 @@
|
||||||
with_items:
|
with_items:
|
||||||
- coffee-script
|
- coffee-script
|
||||||
- less
|
- less
|
||||||
|
- bower
|
||||||
|
|
Loading…
Reference in New Issue