transitiv.nodesource

Ansible Role: NodeSource

Build Status

This role helps you install Node.js from the NodeSource package repositories on systems like Debian/Ubuntu and RHEL/CentOS.

Requirements

You need root access to install packages. You should run this in a playbook with root privileges, or set become: yes when using the role:

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

Dependencies

This role doesn’t require any other roles to work.

Variables

nodesource_version: 13

This sets the version of Node.js that will be installed. NodeSource currently supports versions 10, 12, 13, and 14.

nodesource_packages:
  - nodejs

This lists the package(s) that will be installed by this role. You can add more packages if needed.

nodesource_packages_state: present

This indicates whether the packages in nodesource_packages should be present or not. Check the state parameter in the apt and yum Ansible modules for valid options.

License

This role is available under the MIT license.

Author

This role was created by Transitiv Technologies Ltd..

Informazioni sul progetto

Installs Node.js from the NodeSource package repositories.

Installa
ansible-galaxy install transitiv.nodesource
Licenza
mit
Download
2.2k