Sha256: 826aabcb62040a1b486a905467bc7b3723f8d1fa0cd86fb119059912aaf93aab

Contents?: true

Size: 838 Bytes

Versions: 19

Compression:

Stored size: 838 Bytes

Contents

---
- name: Ensure the latest node is installed
  apt: name=nodejs state=latest
  tags:
    - node

- name: Check if npm 2.x is installed on the system.
  shell: npm -v
  register: npm_version
  changed_when: false
  ignore_errors: yes
  tags:
    - node
    - npm

- name: Install curl
  apt: name=curl state=present
  when: npm_version.stdout | version_compare('2', '<')
  tags:
    - node
    - npm

- name: Install npm
  shell: $SHELL -lc "curl -L https://npmjs.com/install.sh | sh"
  when: npm_version.stdout | version_compare('2', '<')
  tags:
    - node
    - npm

- name: Install global npm_packages
  npm: name={{ item.name | default(omit) }} path={{ item.path | default(omit) }} version={{ item.version | default(omit) }} global=yes state={{ item.state | default(omit) }}
  with_items: npm_packages
  tags:
    - node
    - npm

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
taperole-1.3.2 vendor/leonelgalan.node/tasks/main.yml
taperole-1.3.1 vendor/leonelgalan.node/tasks/main.yml
taperole-1.3.0 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.8 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.7 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.6 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.5 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.4 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.3 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.2 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.1 vendor/leonelgalan.node/tasks/main.yml
taperole-1.2.0 vendor/leonelgalan.node/tasks/main.yml
taperole-1.1.5 vendor/leonelgalan.node/tasks/main.yml
taperole-1.1.4 vendor/leonelgalan.node/tasks/main.yml
taperole-1.1.3 vendor/leonelgalan.node/tasks/main.yml
taperole-1.1.2 vendor/leonelgalan.node/tasks/main.yml
taperole-1.1.1 vendor/leonelgalan.node/tasks/main.yml
taperole-1.1.0 vendor/leonelgalan.node/tasks/main.yml
taperole-1.0.1 vendor/leonelgalan.node/tasks/main.yml