2016-11-07 14:00:57 +01:00
|
|
|
# nodejs
|
|
|
|
|
2017-01-05 18:21:57 +01:00
|
|
|
Installation of NodeJS from NPM repositories.
|
2016-11-07 14:00:57 +01:00
|
|
|
|
|
|
|
## Tasks
|
|
|
|
|
|
|
|
Everything is in the `tasks/main.yml` file.
|
|
|
|
|
|
|
|
## Variables
|
|
|
|
|
2017-06-13 09:28:09 +02:00
|
|
|
* `nodejs_apt_version`: version for the repository (default: `node_6.x`).
|
2018-02-01 10:49:17 +01:00
|
|
|
|
|
|
|
## 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
|
|
|
|
~~~
|