initial commit

This commit is contained in:
muppeth 2024-03-11 23:25:57 +01:00
parent 23ad816b43
commit d6e101cdaf
Signed by: muppeth
GPG key ID: 0EBC7B9848D04031
2 changed files with 22 additions and 0 deletions

4
defaults/main.yml Normal file
View file

@ -0,0 +1,4 @@
nodejs_version: '14'
nodejs_apt:
- nodejs
- npm

18
tasks/main.yml Normal file
View 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