Role nodejs: make major version configurable

This commit is contained in:
Tobias Hachmer 2019-03-20 19:25:12 +01:00
parent 6c3e8336c9
commit fe4415afcf
No known key found for this signature in database
GPG key ID: E112788464CA5C60
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
---
nodejs_major_version: "8"

View file

@ -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