Ctrl K
ComunidadGuías…

vibe.yml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File      :   vibe.yml
# Desc      :   Deploy development tools (claude, optional codex, code, jupyter)
# Ctime     :   2025-01-24
# Mtime     :   2025-01-30
# Path      :   vibe.yml
# Docs      :   https://pigsty.io/docs/vibe
# License   :   Apache-2.0 @ https://pigsty.io/docs/about/license/
# Copyright :   2018-2026  Ruohang Feng / Vonng (rh@vonng.com)
#==============================================================#
- name: VIBE
  hosts: all
  gather_facts: no
  become: true
  vars:
    #vibe_data: /fs                    # vibe workspace directory
    #code_enabled: true                # enable code-server installation
    #code_port: 8443                   # code-server listen port
    #code_data: /data/code             # code-server user data directory
    #code_password: Vibe.Coding        # code-server password
    #code_gallery: 'openvsx'           # extension gallery: openvsx|microsoft
    #jupyter_enabled: true             # enable jupyter lab installation
    #jupyter_port: 8888                # jupyter lab listen port
    #jupyter_data: /data/jupyter       # jupyter lab data directory
    #jupyter_password: Vibe.Coding     # jupyter lab access token
    #jupyter_venv: /data/venv          # python venv path with jupyter
    #claude_enabled: true              # enable claude code cli
    #codex_enabled: true               # install codex cli package only
    #claude_env: {}                    # extra env vars to merge with defaults
    #nodejs_enabled: true              # install standalone nodejs runtime task
    #nodejs_registry: ''               # npm registry, auto china mirror if empty
    #npm_packages: []                  # extra global npm packages to install
  roles:
    - { role: node_id, tags: id   }
    - { role: vibe,    tags: vibe }


#---------------------------------------------------------------
# Usage
#---------------------------------------------------------------
# ./vibe.yml -l <host>                          # full install
# ./vibe.yml -l <host> -t code                  # code only
# ./vibe.yml -l <host> -t jupyter               # jupyter only
# ./vibe.yml -l <host> -t nodejs                # nodejs only
# ./vibe.yml -l <host> -t claude                # install/configure claude
# ./vibe.yml -l <host> -t codex                 # install codex package only
#
# Disable components:
#   ./vibe.yml -l <host> -e code_enabled=false
#   ./vibe.yml -l <host> -e jupyter_enabled=false
#   ./vibe.yml -l <host> -e claude_enabled=false
#   ./vibe.yml -l <host> -e codex_enabled=false
#   ./vibe.yml -l <host> -e nodejs_enabled=false
#
# Access services:
#   Code Server: https://<host>/code/
#   JupyterLab:  https://<host>/jupyter/
#
#---------------------------------------------------------------
# Tasks
#---------------------------------------------------------------
# vibe                 : deploy vibe development tools
#   - vibe_dir         : create workspace and render context files
#   - code             : deploy code-server
#     - code_install   : install code-server package
#     - code_dir       : create code data directories
#     - code_config    : render config and systemd unit
#     - code_launch    : start code-server service
#   - jupyter          : deploy jupyter lab
#     - jupyter_install: install jupyter with uv
#     - jupyter_dir    : create jupyter directories
#     - jupyter_config : render config and systemd unit
#     - jupyter_launch : start jupyter service
#   - nodejs           : optional standalone nodejs runtime
#     - nodejs_install : install nodejs package
#     - nodejs_config  : configure npm registry
#     - nodejs_pkg     : install global npm packages
#   - claude           : install/configure claude code cli
#     - claude_install : install claude-code package
#     - claude_config  : render ~/.claude config files
#   - codex            : install codex cli package only
#     - codex_install  : install codex package
#---------------------------------------------------------------
...