Sha256: 5a41d18efb9a0f1cebfe1a4dea872db3c5053bd0b14ea010c6683f4eb2182c45

Contents?: true

Size: 1023 Bytes

Versions: 7

Compression:

Stored size: 1023 Bytes

Contents

---
# file: tasks/use-yum.yml
#
# Configure Node.js from YUM repository.
#
# @see https://github.com/nodesource/distributions
#

- name: install libselinux-python binary for Ansible to work
  yum: name=libselinux-python state=present

- name: install tools for compiling native addons from npm
  yum: name={{ item }} state=present
  with_items:
    - gcc-c++
    - make
  when: nodejs_compile



- name: add NodeSource official repository for CentOS
  yum: name=https://rpm.nodesource.com/pub/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm state=present



- name: install Node.js with specific version
  yum: name={{ item }}  update_cache=yes  state=present
  with_items: [ "nodejs-{{ nodejs_version }}*" ]
  when: nodejs_version is defined

#- name: install io.js with specific version
#  yum: name={{ item }}  update_cache=yes  state=present
#  with_items: [ "iojs-{{ iojs_version }}*" ]
#  when: iojs_version is defined

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
taperole-1.3.6 vendor/williamyeh.nodejs/tasks/use-yum.yml
taperole-1.3.5 vendor/williamyeh.nodejs/tasks/use-yum.yml
taperole-1.3.4 vendor/williamyeh.nodejs/tasks/use-yum.yml
taperole-1.3.3 vendor/williamyeh.nodejs/tasks/use-yum.yml
taperole-1.3.2 vendor/williamyeh.nodejs/tasks/use-yum.yml
taperole-1.3.1 vendor/williamyeh.nodejs/tasks/use-yum.yml
taperole-1.3.0 vendor/williamyeh.nodejs/tasks/use-yum.yml