{"repo":"geerlingguy/ansible-role-nodejs","free":true,"listed":false,"github":"https://github.com/geerlingguy/ansible-role-nodejs","clone":"git clone https://github.com/geerlingguy/ansible-role-nodejs.git","description":"Ansible Role - Node.js","language":"Jinja","stars":426,"topics":["ansible","role","node","nodejs","install","setup","language","nodesource"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Ansible Role: Node.js Installs Node.js on RHEL/CentOS or Debian/Ubuntu. Requirements None. Role Variables Available variables are listed below, along with default values (see defaults/main.yml ): The Node.js version to install. \"14.x\" is the default and works on most supported OSes. Other versions such as \"10.x\", \"14.x\", \"18.x\", etc. should work on the latest versions of Debian/Ubuntu and RHEL/CentOS. The user for whom the npm packages will be installed can be set here, this defaults to ansible user . The global installation directory. This should be writeable by the nodejs install npm user . Set to true to suppress the UID/GID switching when running package scripts. If set explicitly to false, then installing as a non-root user will fail. A list of npm packages with a name and (optional) version to be installed globally. For example: Set a path pointing to a particular package.json (e.g. \"/var/www/app/package.json\" ). This will install all of the defined packages globally using Ansible's npm module. By default the role will create /etc/profile.d/npm.sh with exported variables ( PATH , NPM CONFIG PREFIX , NODE PATH ). If you prefer to avoid generating that file (e.g. you want to set the variables yourself for a non-global install), set it to \"false\". Dependencies None. Example Playbook Inside vars/main.yml : License MIT / BSD Author Information This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.","default_branch":null,"files":null,"tree":[],"storefront":"/r/geerlingguy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/geerlingguy/ansible-role-nodejs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}