ansible-roles/nodejs
2018-02-01 10:50:44 +01:00
..
defaults nodejs: add 3 tasks + install procedure 2018-02-01 10:49:17 +01:00
files download gpg in repo, we want to be independant from network as possible 2017-08-23 02:50:17 +02:00
meta Ansible >= 2.2 supported 2017-03-24 14:15:09 +01:00
tasks nodejs: add 3 tasks + install procedure 2018-02-01 10:49:17 +01:00
tests Update test kitchen configuration and directory layout 2017-02-27 15:49:10 -05:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
playbook.yml nodejs: add playbook example 2018-02-01 10:50:44 +01:00
README.md nodejs: add 3 tasks + install procedure 2018-02-01 10:49:17 +01:00

nodejs

Installation of NodeJS from NPM repositories.

Tasks

Everything is in the tasks/main.yml file.

Variables

  • nodejs_apt_version: version for the repository (default: node_6.x).

1 - Create a playbook with nodejs role

---
- hosts: hostname
  become: yes
  roles:
    - nodejs

2 - Install nodejs prerequisite with ansible

# ansible-playbook playbook.yml -K --check --diff --limit hostname