Skip to content

Commit

Permalink
Install Node/js LTS via nodesource
Browse files Browse the repository at this point in the history
  • Loading branch information
conradhodge committed Jan 7, 2024
1 parent 274c67e commit c6f8258
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ansible/roles/wsl/tasks/node.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
---
- name: Download nodesource setup script
# https://github.com/nodesource/distributions
- name: Download nodesource setup script for Node.js LTS
ansible.builtin.get_url:
url: https://deb.nodesource.com/nsolid_setup_deb.sh
dest: /tmp/nsolid_setup_deb.sh
url: https://deb.nodesource.com/setup_lts.x
dest: /tmp/setup_lts.x
mode: '0500'

- name: Run nodesource setup script
become: yes
ansible.builtin.shell: /tmp/nsolid_setup_deb.sh {{ node_version }}
args:
creates: /usr/share/keyrings/nodesource.gpg
ansible.builtin.shell: /tmp/setup_lts.x

- name: Install Node.js {{ node_version }}
- name: Install Node.js LTS
become: yes
ansible.builtin.apt:
name: nodejs

0 comments on commit c6f8258

Please sign in to comment.