hurricanehrndz.fnm

hurricanehrndz.fnm (Fast Node Manager)

Build Status Ansible Role MIT licensed

This is an Ansible role for installing Fast Node Manager (fnm) and Node.js for a specific user.

Role Variables

Here are the variables you can set for this role. These include variables located in defaults/main.yml, vars/main.yml, and any that can be set as parameters.

fnm_user: "{{ ansible_user | default(lookup('env', 'USER')) }}"

This specifies which user will have fnm, Node.js, npm, and node modules installed. The default is ansible_user.

fnm_root: "{{ lookup('env', 'HOME') }}/{{ fnm_root_suffix }}"

This is the directory where fnm will be installed. It should be writable by fnm_user. The default is the user's home directory ($HOME), plus fnm_root_suffix (.fnm). For example, it could be /home/hurricanehrndz/.fnm. This is also referred to as FNM_DIR.

fnm_root_suffix: ".fnm"

This sets the suffix for the installation directory, only used if fnm_root is not specified. The default is .fnm.

fnm_skip_shell: false

If set to true, it will prevent changes to the shell configuration for fnm_user.

fnm_nodejs_versions: []

This is a list of Node.js versions to install. The default is [ "latest-v12.x" ]. The first version in the list will be used as fnm_default_nodejs_version.

fnm_npm_global_packages: []

This is a list of global npm packages to install. Each package can have a name, (optional) nodejs_version, and (optional) version. For example:

fnm_npm_global_packages:
  - name: gulp
  - name: neovim
    version: "4.7.0"
    nodejs_version: "12.14.0"

Dependencies

There are no dependencies.

Example Playbook

- hosts: servers
  tasks:
    - name: Run role
      include_role:
        name: hurricanehrndz.fnm

License

MIT

Author Information

Carlos Hernandez aka HurricaneHrndz

Informazioni sul progetto

Role to install Fast Node Manager (fnm) and nodejs within userspace.

Installa
ansible-galaxy install hurricanehrndz.fnm
Licenza
mit
Download
610
Proprietario
Software Mage/Wizard/Developer @Yelp | Technology fanatic with an unquenchable thirst for knowledge.