All Projects → geerlingguy → Ansible Role Nodejs

geerlingguy / Ansible Role Nodejs

Licence: mit
Ansible Role - Node.js

Programming Languages

language
365 projects

Projects that are alternatives of or similar to Ansible Role Nodejs

Ansible Role Git
Ansible Role - Git
Stars: ✭ 153 (-52.48%)
Mutual labels:  install, ansible, setup, role
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+5.9%)
Mutual labels:  install, ansible, setup, role
Ansible Role Security
Ansible Role - Security
Stars: ✭ 398 (+23.6%)
Mutual labels:  ansible, setup, role
Ansible Role Postgresql
Ansible Role - PostgreSQL
Stars: ✭ 310 (-3.73%)
Mutual labels:  ansible, setup, role
Ansible Role Java
Ansible Role - Java
Stars: ✭ 231 (-28.26%)
Mutual labels:  install, ansible, role
Ansible Role Repo Epel
Ansible Role - EPEL Repository for RHEL/CentOS
Stars: ✭ 149 (-53.73%)
Mutual labels:  ansible, setup, role
Ansible Role Homebrew
Ansible Role - Homebrew
Stars: ✭ 195 (-39.44%)
Mutual labels:  ansible, setup, role
ansible-role-ansible
Ansible Role - Ansible
Stars: ✭ 91 (-71.74%)
Mutual labels:  setup, install, role
Ansible Role Kubernetes
Ansible Role - Kubernetes
Stars: ✭ 247 (-23.29%)
Mutual labels:  ansible, role
Mac Setup
Installing Development environment on macOS
Stars: ✭ 6,510 (+1921.74%)
Mutual labels:  install, setup
Mac Dev Playbook
Mac setup and configuration via Ansible.
Stars: ✭ 4,202 (+1204.97%)
Mutual labels:  ansible, setup
Packer Centos 7
This build has been moved - see README.md
Stars: ✭ 223 (-30.75%)
Mutual labels:  ansible, setup
Ansible Ubuntu
Ansible scripts to setup Ubuntu desktop/server
Stars: ✭ 182 (-43.48%)
Mutual labels:  ansible, setup
Robotics setup
Setup Ubuntu 18.04, 16.04 and 14.04 with machine learning and robotics software plus user configuration. Includes ceres tensorflow ros caffe vrep eigen cudnn and cuda plus many more.
Stars: ✭ 110 (-65.84%)
Mutual labels:  install, setup
Netboot.xyz
Your favorite operating systems in one place. A network-based bootable operating system installer based on iPXE.
Stars: ✭ 2,753 (+754.97%)
Mutual labels:  install, ansible
Windows Workstation
Prepare my Windows 10 workstation
Stars: ✭ 33 (-89.75%)
Mutual labels:  install, setup
Ansible Role Ntp
Ansible Role - NTP
Stars: ✭ 203 (-36.96%)
Mutual labels:  ansible, role
opencv3-setup
Raspberry Pi whiptail Menu driven Easy Install and Compile of opencv3 python from source files.
Stars: ✭ 47 (-85.4%)
Mutual labels:  setup, install
Ansible Nginx Hardening
This Ansible role provides secure nginx configurations.
Stars: ✭ 180 (-44.1%)
Mutual labels:  ansible, role
ansible-role-raspberry-pi
Configures a Raspberry Pi (running Raspbian).
Stars: ✭ 90 (-72.05%)
Mutual labels:  setup, role

Ansible Role: Node.js

CI

Installs Node.js on RHEL/CentOS or Debian/Ubuntu.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

nodejs_version: "12.x"

The Node.js version to install. "12.x" is the default and works on most supported OSes. Other versions such as "8.x", "10.x", "13.x", etc. should work on the latest versions of Debian/Ubuntu and RHEL/CentOS.

nodejs_install_npm_user: "{{ ansible_ssh_user }}"

The user for whom the npm packages will be installed can be set here, this defaults to ansible_user.

npm_config_prefix: "/usr/local/lib/npm"

The global installation directory. This should be writeable by the nodejs_install_npm_user.

npm_config_unsafe_perm: "false"

Set to true to suppress the UID/GID switching when running package scripts. If set explicitly to false, then installing as a non-root user will fail.

nodejs_npm_global_packages: []

A list of npm packages with a name and (optional) version to be installed globally. For example:

nodejs_npm_global_packages:
  # Install a specific version of a package.
  - name: jslint
    version: 0.9.3
  # Install the latest stable release of a package.
  - name: node-sass
  # This shorthand syntax also works (same as previous example).
  - node-sass
nodejs_package_json_path: ""

Set a path pointing to a particular package.json (e.g. "/var/www/app/package.json"). This will install all of the defined packages globally using Ansible's npm module.

Dependencies

None.

Example Playbook

- hosts: utility
  vars_files:
    - vars/main.yml
  roles:
    - geerlingguy.nodejs

Inside vars/main.yml:

nodejs_npm_global_packages:
  - name: jslint
  - name: node-sass

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].