fix: host_vars filenames, include_vars by ansible_hostname
This commit is contained in:
@@ -1,35 +0,0 @@
|
|||||||
---
|
|
||||||
# Mark44 (Hulkbuster) — Heavy GPU compute node
|
|
||||||
node_type: gpu_heavy
|
|
||||||
has_gpu: true
|
|
||||||
gpu_type: nvidia
|
|
||||||
gpu_model: "RTX 4070"
|
|
||||||
vram_mb: 12282
|
|
||||||
|
|
||||||
# GPU-specific packages
|
|
||||||
extra_packages:
|
|
||||||
- nvidia-driver # NVIDIA driver (if not already installed via proprietary)
|
|
||||||
- cuda-toolkit # CUDA toolkit for ML workloads
|
|
||||||
- nvtop # GPU monitoring (better than nvidia-smi for live view)
|
|
||||||
- nethogs # Network per-process monitoring
|
|
||||||
- iotop # I/O per-process monitoring
|
|
||||||
|
|
||||||
# Ollama models — largest VRAM headroom, can run big models
|
|
||||||
ollama_models:
|
|
||||||
- gemma4:e4b # Already pulled — keep it
|
|
||||||
- qwen2.5-coder:14b # Primary coding model
|
|
||||||
- qwen2.5:14b # General purpose large model
|
|
||||||
- mistral:7b # Fallback fast model
|
|
||||||
|
|
||||||
# Services
|
|
||||||
managed_services:
|
|
||||||
- name: ollama
|
|
||||||
enabled: true
|
|
||||||
- name: open-webui
|
|
||||||
enabled: true
|
|
||||||
- name: hermes-gateway
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
# Ollama port override (standard)
|
|
||||||
ollama_port: 11434
|
|
||||||
open_webui_port: 8080
|
|
||||||
@@ -3,6 +3,13 @@
|
|||||||
connection: local
|
connection: local
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
|
# Load host-specific vars by actual system hostname
|
||||||
|
- name: Load host-specific variables
|
||||||
|
include_vars:
|
||||||
|
file: "host_vars/{{ ansible_hostname | lower }}.yml"
|
||||||
|
ignore_errors: true
|
||||||
|
tags: [vars, always]
|
||||||
|
|
||||||
- name: Print start message
|
- name: Print start message
|
||||||
debug:
|
debug:
|
||||||
msg: "Ansible Pull running on {{ ansible_hostname }} ({{ inventory_hostname }}) — role: {{ node_type | default('unspecified') }}"
|
msg: "Ansible Pull running on {{ ansible_hostname }} ({{ inventory_hostname }}) — role: {{ node_type | default('unspecified') }}"
|
||||||
@@ -78,7 +85,7 @@
|
|||||||
- cockpit-pcp
|
- cockpit-pcp
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == "artemis.ai.home"
|
- inventory_hostname == "artemis.ai.home" or ansible_hostname == "artemis"
|
||||||
- ansible_os_family == "Debian"
|
- ansible_os_family == "Debian"
|
||||||
tags: [artemis]
|
tags: [artemis]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user