2023-09-11 20:30:48 +00:00
|
|
|
- name: Add NodeJS repo key
|
|
|
|
apt_key:
|
|
|
|
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
|
|
|
|
keyring: /etc/apt/keyrings/nodesource.gpg
|
|
|
|
|
2023-10-25 19:41:00 +00:00
|
|
|
#- name: Add NodeJS repo url
|
|
|
|
# apt_repository:
|
|
|
|
# repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main"
|
|
|
|
|
|
|
|
- name: Add NodeJS LTS repo url
|
2023-09-11 20:30:48 +00:00
|
|
|
apt_repository:
|
2023-10-25 19:41:00 +00:00
|
|
|
repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main"
|
2023-09-11 20:30:48 +00:00
|
|
|
|
|
|
|
- name: Install NodeJS
|
|
|
|
apt:
|
|
|
|
name: nodejs
|
|
|
|
state: latest
|
|
|
|
|