mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-05-03 06:17:00 +02:00
04670ee28a
See merge request tildes/tildes!178
23 lines
731 B
YAML
23 lines
731 B
YAML
---
|
|
- name: Add APT key for NodeSource Node.js repository
|
|
apt_key:
|
|
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
|
|
|
|
- name: Add NodeSource Node.js APT repository
|
|
apt_repository:
|
|
repo: deb https://deb.nodesource.com/node_22.x nodistro main
|
|
|
|
- name: Install Node.js
|
|
apt:
|
|
name: nodejs>=22
|
|
|
|
- name: Install npm packages defined in package.json
|
|
become_user: "{{ app_username }}"
|
|
community.general.npm:
|
|
path: "{{ app_dir }}"
|
|
# --no-bin-links option is needed to prevent npm from creating symlinks in the .bin
|
|
# directory, which doesn't work inside Vagrant on Windows
|
|
no_bin_links: true
|
|
# Disable automatic running of package install scripts, for security
|
|
ignore_scripts: true
|