Go to file
2023-08-13 08:56:02 -07:00
defaults Install nodejs, and use npm to install n for node version management. 2023-08-13 08:56:02 -07:00
meta Initialize repository for Yarn role. 2023-08-13 00:21:49 -07:00
tasks Install nodejs, and use npm to install n for node version management. 2023-08-13 08:56:02 -07:00
vars Install nodejs, and use npm to install n for node version management. 2023-08-13 08:56:02 -07:00
.gitignore Initialize repository for Yarn role. 2023-08-13 00:21:49 -07:00
LICENSE Initialize repository for Yarn role. 2023-08-13 00:21:49 -07:00
README.md Install nodejs, and use npm to install n for node version management. 2023-08-13 08:56:02 -07:00

Ansible Role: nodejs

Install nodejs, npm and yarn packages from the official yarn repositories. Optionally install n from npm repositories for version management.

Tested on:

  • Archlinux
  • Debian 11
  • Ubuntu 22.04

Requirements

None.

Role Variables

node_version: node_20.x
n_enabled: yes

See the role vars

Example Playbook

- hosts: nodejs
  roles:
    - role: bleetube.nodejs
      become: true