talas-group/04_INFRA_DEPLOIEMENT/Notes_Operations/ansible_ciso_roadto.txt
senke 66471934af Initial commit: Talas Group project management & documentation
Knowledge base of ~80+ markdown files across 14 domains (00-13),
Logseq graph, hardware design files (KiCAD), infrastructure configs,
and talas-wiki static site.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 20:10:41 +02:00

60 lines
2.5 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- name: Install dependencies
apt:
name:
- npm
- curl
- git
state: present
tags: ciso
- name: Install NVM
shell: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
args:
creates: ~/.nvm/nvm.sh
tags: ciso
- name: Load NVM and set default Node.js version
shell: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
nvm install 22
args:
executable: /bin/bash
tags: ciso
- name: Install PNPM
shell: |
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=10.0.0 sh -
args:
creates: ~/.local/share/pnpm
tags: ciso
- name: Load PNPM, install dependencies and build
shell: |
export PNPM_HOME="/root/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
pnpm install
pnpm run build
args:
creates: ~/.local/share/pnpm
tags: ciso
- name: Install frontend dependencies
shell: "pnpm install"
args:
chdir: "{{ frontend_path }}"
tags:
- ciso
- test
TASK [ciso : Install frontend dependencies] ***************************************************************************************************************************************************
Friday 07 February 2025 17:05:21 +0100 (0:00:00.176) 0:00:31.929 *******
fatal: [ciso-1]: FAILED! => {"changed": true, "cmd": "pnpm install", "delta": "0:00:00.653811", "end": "2025-02-07 17:05:21.972984", "msg": "non-zero return code", "rc": 1, "start": "2025-02-07 17:05:21.319173", "stderr": "", "stderr_lines": [], "stdout": "Lockfile is up to date, resolution step is skipped\nERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)\n\nYour Node version is incompatible with \"@wolfy1339/lru-cache@11.0.2-patch.1\".\n\nExpected version: 18 >=18.20 || 20 || >=22\nGot: v18.19.0\n\nThis is happening because the package's manifest has an engines.node field specified.\nTo fix this issue, install the required Node version.", "stdout_lines": ["Lockfile is up to date, resolution step is skipped", "ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)", "", "Your Node version is incompatible with \"@wolfy1339/lru-cache@11.0.2-patch.1\".", "", "Expected version: 18 >=18.20 || 20 || >=22", "Got: v18.19.0", "", "This is happening because the package's manifest has an engines.node field specified.", "To fix this issue, install the required Node version."]}