2016-03-15 08:32:38 -04:00
|
|
|
---
|
|
|
|
- name: setup a user local node folder for development
|
2016-03-15 10:10:17 -04:00
|
|
|
file: path="{{ local_dev_setup.user_home }}/.local/nodejs" state=directory owner={{ local_development.user }}
|
2016-03-15 08:32:38 -04:00
|
|
|
|
|
|
|
- name: setup a npmrc setting for local development
|
2016-03-15 10:10:17 -04:00
|
|
|
template: src=npmrc.tmpl dest="{{ local_dev_setup.user_home }}/.npmrc" owner={{ local_development.user }}
|
|
|
|
|
|
|
|
- name: install globally required tools
|
|
|
|
npm: name={{ item }} state=present registry=http://registry.npmjs.org/ path="{{ local_dev_setup.npm_home }}"
|
|
|
|
become_user: "{{ local_development.user }}"
|
|
|
|
with_items: globally_installed_tools
|