classroom/roles/linroom/tasks/nodejs.yml
2023-09-07 23:19:33 +02:00

15 lines
378 B
YAML

- 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