--- - name: setup a user local node folder for development file: path="{{ local_dev_setup.npm_home }}" state=directory owner={{ local_development.user }} group={{ 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 }} group={{ local_development.user }} - name: install globally required tools npm: name={{ item }} state=present registry=http://registry.npmjs.org/ path="{{ local_dev_setup.npm_home }}" global=yes with_items: globally_installed_tools - name: add binaries to local path lineinfile: state=present dest="{{ local_dev_setup.user_home }}/.bash_profile" line="export PATH=$PATH:$HOME/.local/share/node_modules/bin:$HOME/.local/share/node_modules/.bin"