calvinbui.ansible_nodejs
Ansible NodeJS
An Ansible role that installs NodeJS & NPM on Ubuntu based on the official installation instructions.
Requirements
N/A
Role Variables
nodejs_version: version of node to install
nodejs_install_packages: A list of packages to install with the npm module. Set it to [] if no packages are required.
All available options used in the npm module can be used here as well. Set it exactly the same as the pip module, e.g.
nodejs_install_packages:
- name: lodash
global: true
- name: request
state: present
version: 2.88.0
global: true
production: true
ignore_scripts: true
- ...
Dependencies
N/A
Example Playbook
- hosts: servers
become: true
pre_tasks:
- name: Update apt cache.
apt:
update_cache: true
cache_valid_time: 600
changed_when: false
roles:
- role: ansible-nodejs
License
GPLv3
Author Information
Install
ansible-galaxy install calvinbui.ansible_nodejsLicense
Unknown
Downloads
314
Owner
Soft tabs > spaces > tabs. I'm not a developer.
