36 lines
844 B
YAML
36 lines
844 B
YAML
---
|
|
# 20260730 - Hyperling
|
|
# Install much more recent Node versions.
|
|
|
|
# https://linuxcapable.com/how-to-install-node-js-on-debian-linux/
|
|
|
|
- name: Workstation | Software | NodeJS
|
|
block:
|
|
|
|
- name: Workstation | Software | NodeJS | Facts
|
|
set_fact:
|
|
node_version: node_24.x
|
|
|
|
- name: Workstation | Software | NodeJS | Old | Remove
|
|
package:
|
|
name: npm
|
|
state: absent
|
|
|
|
- name: Workstation | Software | NodeJS | extrepo | Install
|
|
package:
|
|
name: extrepo
|
|
state: present
|
|
update_cache: yes
|
|
|
|
- name: Workstation | Software | NodeJS | extrepo | Enable {{ node_version }}
|
|
shell: "extrepo enable {{ node_version }}"
|
|
|
|
- name: Workstation | Software | NodeJS | Install
|
|
package:
|
|
name: nodejs
|
|
state: latest
|
|
update_cache: yes
|
|
|
|
when: ansible_pkg_mgr == "apt"
|
|
and coding == true
|