2018-09-11 14:14:23 +02:00
|
|
|
---
|
|
|
|
- name: ensure apt key for nodejs is present
|
|
|
|
apt_key:
|
|
|
|
state: present
|
|
|
|
id: 68576280
|
|
|
|
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
|
|
|
|
|
|
|
|
- name: ensure nodejs apt repo is present
|
|
|
|
apt_repository:
|
|
|
|
state: present
|
2019-03-20 19:25:12 +01:00
|
|
|
repo: "deb https://deb.nodesource.com/node_{{ nodejs_major_version }}.x stretch main"
|
2018-09-11 14:14:23 +02:00
|
|
|
update_cache: yes
|
|
|
|
filename: nodesource
|
|
|
|
|
|
|
|
- name: install nodejs package
|
|
|
|
package:
|
|
|
|
name: nodejs
|
|
|
|
state: present
|