ansible-nodejs/tasks/development.yml

12 lines
569 B
YAML
Raw Normal View History

---
- name: setup a user local node folder for development
file: path="{{ local_dev_setup.user_home }}/.local/nodejs" state=directory owner={{ local_development.user }}
- name: setup a npmrc setting for local development
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