ansible-role-nodejs/README.md

33 lines
452 B
Markdown
Raw Normal View History

# Ansible Role: nodejs
2023-08-13 07:20:47 +00:00
Install nodejs, npm and yarn packages from the official yarn repositories. Optionally install packages from npm repositories.
2023-08-13 07:20:47 +00:00
Tested on:
* Archlinux
* Debian 11
2023-08-13 07:20:47 +00:00
* Ubuntu 22.04
## Requirements
None.
## Role Variables
```yaml
node_version: node_20.x
npm_packages:
- n
- pnpm
```
2023-08-13 07:20:47 +00:00
See the role [vars](vars/main.yml)
## Example Playbook
```yaml
- hosts: nodejs
2023-08-13 07:20:47 +00:00
roles:
- role: bleetube.nodejs
2023-08-13 07:20:47 +00:00
become: true
```