mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
install nodesource first
This commit is contained in:
parent
19c7b9c24e
commit
a5cefb5464
1 changed files with 13 additions and 0 deletions
|
@ -8,6 +8,19 @@
|
|||
- '{{LIB_DIR_NPM_BIN}}'
|
||||
- '{{LIB_DIR_BIN}}'
|
||||
|
||||
- name: Install the gpg key for nodejs LTS
|
||||
apt_key:
|
||||
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
|
||||
state: present
|
||||
when: ansible_facts['os_family']|lower == 'debian'
|
||||
|
||||
- name: Install the nodejs LTS repos
|
||||
apt_repository:
|
||||
repo: "deb https://deb.nodesource.com/node_22.x {{ ansible_facts['distribution_release'] }} main"
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_facts['os_family']|lower == 'debian'
|
||||
|
||||
- name: "Install system packages: node"
|
||||
ansible.builtin.package:
|
||||
name: "{{ (ansible_facts['os_family']|lower == 'debian') | ternary('nodejs', 'node') }}"
|
||||
|
|
Loading…
Reference in a new issue