classroom/roles/winroom/tasks/nodejs.yml

15 lines
378 B
YAML
Raw Normal View History

2023-09-12 12:14:11 +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
- 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: Install NodeJS
apt:
name: nodejs
state: latest