Skip to content

Ansible role to install Node.js from the NodeSource package repositories on Debian, Ubuntu, RHEL and CentOS

License

Notifications You must be signed in to change notification settings

transitiv/ansible-role-nodesource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: NodeSource

Build Status

This role installs Node.js from the NodeSource package repositories on systems running Debian/Ubuntu and RHEL/CentOS.

Requirements

Root accesss is required for installing packages, so you must run it in a playbook with global root privileges or define become: yes when the role is included:

- hosts: nodejs_servers
  roles:
    - role: transitiv.nodesource
      become: yes

Dependencies

This role has no dependencies.

Variables

nodesource_version: 13

Defines the version of Node.js that will be installed. NodeSource currently provides versions 10, 12, 13 and 14.

nodesource_packages:
  - nodejs

Defines the package(s) installed by the role. This variable is "flattened" before it is used so it can contain nested lists if desired.

nodesource_packages_state: present

Defines the state of the packages defined in nodesource_packages. See the state parameter in the apt and yum Ansible modules for valid values.

License

This role is available under the terms of the MIT license.

Author

This role was created by Transitiv Technologes Ltd..

About

Ansible role to install Node.js from the NodeSource package repositories on Debian, Ubuntu, RHEL and CentOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published