Migrate roles to use stand-alone NodeJS role.
This commit is contained in:
parent
69770a46c4
commit
2d00f3c71d
|
@ -13,7 +13,8 @@ galaxy_info:
|
||||||
- development
|
- development
|
||||||
- web
|
- web
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: "git+https://bitbucket.org/dorianpula/ansible-nginx-uwsgi-supervisor,,nginx-uwsgi-supervisor"
|
# - role: "git+https://bitbucket.org/dorianpula/ansible-nginx-uwsgi-supervisor,,nginx-uwsgi-supervisor"
|
||||||
|
- role: "nginx-uwsgi-supervisor"
|
||||||
app_name: "{{ rookeries_app_name }}"
|
app_name: "{{ rookeries_app_name }}"
|
||||||
app_root_path: "{{ rookeries_app_symlink }}"
|
app_root_path: "{{ rookeries_app_symlink }}"
|
||||||
app_venv: "{{ rookeries_venv_symlink }}"
|
app_venv: "{{ rookeries_venv_symlink }}"
|
||||||
|
@ -21,7 +22,8 @@ dependencies:
|
||||||
app_uwsgi_port: "{{ rookeries_local_uwsgi_port }}"
|
app_uwsgi_port: "{{ rookeries_local_uwsgi_port }}"
|
||||||
app_uwsgi_executable: "rookeries:make_rookeries_app()"
|
app_uwsgi_executable: "rookeries:make_rookeries_app()"
|
||||||
app_uwsgi_envs: "{{ rookeries_app_config }}"
|
app_uwsgi_envs: "{{ rookeries_app_config }}"
|
||||||
- role: "git+https://bitbucket.org/dorianpula/ansible-nodejs,,nodejs"
|
# - role: "git+https://bitbucket.org/dorianpula/ansible-nodejs,,nodejs"
|
||||||
|
- role: "nodejs"
|
||||||
node_version_family: "5.x"
|
node_version_family: "5.x"
|
||||||
globally_installed_tools:
|
globally_installed_tools:
|
||||||
- browserify
|
- browserify
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
- include: nodejs.yaml
|
|
||||||
- include: couchdb.yaml
|
- include: couchdb.yaml
|
||||||
- include: dev_email_server.yaml
|
- include: dev_email_server.yaml
|
||||||
- include: rookeries_deployment.yaml
|
- include: rookeries_deployment.yaml
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
---
|
|
||||||
- name: install systems to help setup nodejs
|
|
||||||
apt: pkg={{ item }} state=present
|
|
||||||
with_items:
|
|
||||||
- python-apt
|
|
||||||
- git
|
|
||||||
- apt-transport-https
|
|
||||||
|
|
||||||
- name: add the nodesource repository
|
|
||||||
apt_key: url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present
|
|
||||||
|
|
||||||
- name: add the nodesource binary repository
|
|
||||||
apt_repository: repo="deb https://deb.nodesource.com/node_0.12 {{ ansible_lsb.codename }} main"
|
|
||||||
state=present
|
|
||||||
|
|
||||||
- name: add the nodesource source repository
|
|
||||||
apt_repository: repo="deb-src https://deb.nodesource.com/node_0.12 {{ ansible_lsb.codename }} main"
|
|
||||||
state=present update_cache=yes
|
|
||||||
|
|
||||||
- name: install nodejs + npm
|
|
||||||
apt: pkg=nodejs state=present
|
|
||||||
|
|
||||||
- name: check if nodejs binary exists and needs linking to node binary
|
|
||||||
stat: path=/usr/bin/nodejs
|
|
||||||
register: nodejs_bin
|
|
||||||
|
|
||||||
- name: link nodejs binary correctly
|
|
||||||
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
|
||||||
when: nodejs_bin.stat.exists
|
|
||||||
|
|
||||||
- name: install coffeescript + less dependencies
|
|
||||||
npm: name={{ item }} global=yes state=present registry=http://registry.npmjs.org/
|
|
||||||
with_items:
|
|
||||||
- less
|
|
||||||
- browserify
|
|
Loading…
Reference in New Issue