buluma.npm

Ansible Role npm

This role installs npm on your system.

GitHub Version Issues Pull Requests Downloads
github Version Issues PullRequests Ansible Role

Example Playbook

Here is an example playbook taken from molecule/default/converge.yml. It is tested every time there is a push or pull request.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.npm

Before running, the machine needs preparation. In CI, this is done with molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  gather_facts: false
  become: true

  roles:
    - role: buluma.bootstrap
    - role: buluma.ca_certificates
    - role: buluma.epel

For more detailed instructions, check out this full explanation and example.

Role Variables

Default variable values are located in defaults/main.yml:

---
# Default values for npm

# The npm_registry can be customized from the default, mapped in `vars/main.yml`.
npm_registry: "{{ _npm_registry[ansible_distribution] | default(_npm_registry['default']) }}"

Requirements

State of Used Roles

These roles help set up a system, but you can choose other methods if you like.

Requirement GitHub Version
buluma.bootstrap Ansible Molecule Version
buluma.ca_certificates Ansible Molecule Version
buluma.epel Ansible Molecule Version

Context

This role works with other roles. For more information, check the documentation on these roles.

Here's a graphic showing related roles:

dependencies

Compatibility

This role has been tested with these Docker images:

Container Tags
Alpine all
EL 8
Debian bullseye
Fedora all
Ubuntu all
Kali all

Ansible version 2.12 or higher is required, and tests have been done on:

  • The previous version.
  • The current version.
  • The development version.

If you encounter any issues, please report them on GitHub.

Changelog

Check the Role History.

License

This role is licensed under Apache-2.0.

Author Information

Created by Shadow Walker.

Informazioni sul progetto

Install npm on your system.

Installa
ansible-galaxy install buluma.npm
Licenza
apache-2.0
Download
91.7k
Proprietario
DevOps Engineer