initial commit
This commit is contained in:
parent
23ad816b43
commit
d6e101cdaf
2 changed files with 22 additions and 0 deletions
4
defaults/main.yml
Normal file
4
defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
nodejs_version: '14'
|
||||
nodejs_apt:
|
||||
- nodejs
|
||||
- npm
|
18
tasks/main.yml
Normal file
18
tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
|
||||
- name: '[INSTALL] - Add Nodesource apt key.'
|
||||
apt_key:
|
||||
url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
|
||||
id: "68576280"
|
||||
state: present
|
||||
|
||||
- name: '[INSTALL] - Add repository for nodejs'
|
||||
apt_repository:
|
||||
repo: deb https://deb.nodesource.com/node_{{ nodejs_version }}.x {{ ansible_distribution_release }} main
|
||||
state: present
|
||||
filename: 'nodesource'
|
||||
- name: '[INSTALL] - Install dependencies'
|
||||
apt:
|
||||
name: "{{ nodejs_apt }}"
|
||||
update_cache: yes
|
||||
|
Loading…
Reference in a new issue