Files
tildes/ansible/roles/nodejs/tasks/main.yml
T
2025-03-10 22:49:00 -06:00

15 lines
386 B
YAML

---
- name: Install Node.js
apt:
name:
- nodejs
- npm
- 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