Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

ECGALAXY nodejs

Ansible role that installs Node.js.

Requirements

  • On Ubuntu, the gpg-agent command, which can be provided by ecgalaxy.common_packages.

Role Variables

  • nodejs_version: Sets the Node.js version to install ("12.x", "13.x", "14.x", "15.x", etc.).

Version numbers from Nodesource: https://github.com/nodesource/distributions.

Dependencies

  • optional: ecgalaxy.bootstrap
  • optional: ecgalaxy.common_packages

Example Playbook

- hosts: all
  roles:
    - ecgalaxy.bootstrap
    - ecgalaxy.common_packages
    - ecgalaxy.nodejs

One-liner

bash <(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.nodejs

See ansible-role for instructions.

Please verify the script integrity first.

License

Copyright the European Union 2022.

Licensed under the EUPL-1.2 or later.

Author Information

ECGALAXY team.

NOTE: This role is based on original work by Jeff Geerling.