Skip to content

f500/ansible-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs

Install Node.js and NPM

Requirements

Debian Bullseye / Bookworm or Ubuntu Precise/Trusty/Xenial.

Role Variables

Specify the version of Node.js you want:

nodejs_version: 6.x

See https://github.com/nodesource/distributions

Example Playbook

- hosts: servers
  roles:
    - { role: f500.nodejs }

Linting

Github actions will check this role with ansible-lint. To run this locally, you will need to follow the following steps:

brew install ansible-lint
brew install yamllint
ansible-lint

to fix the linting errors, run:

ansible-lint --fix

License

LGPL-3.0

Author Information

Jasper N. Brouwer, [email protected]

Ramon de la Fuente, [email protected]