Role nodejs: make major version configurable
This commit is contained in:
parent
6c3e8336c9
commit
fe4415afcf
2 changed files with 3 additions and 1 deletions
2
roles/nodejs/defaults/main.yml
Normal file
2
roles/nodejs/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
nodejs_major_version: "8"
|
|
@ -8,7 +8,7 @@
|
|||
- name: ensure nodejs apt repo is present
|
||||
apt_repository:
|
||||
state: present
|
||||
repo: "deb https://deb.nodesource.com/node_8.x stretch main"
|
||||
repo: "deb https://deb.nodesource.com/node_{{ nodejs_major_version }}.x stretch main"
|
||||
update_cache: yes
|
||||
filename: nodesource
|
||||
|
||||
|
|
Loading…
Reference in a new issue