mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04: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_NPM_BIN}}'
|
||||||
- '{{LIB_DIR_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"
|
- name: "Install system packages: node"
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ (ansible_facts['os_family']|lower == 'debian') | ternary('nodejs', 'node') }}"
|
name: "{{ (ansible_facts['os_family']|lower == 'debian') | ternary('nodejs', 'node') }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue