- name: 全量组件部署 hosts: all_nodes # 所有节点分组 roles: - role: system_init # 基础初始化 - role: gpu_driver # GPU节点专 - role: node_exporter # 系统监控 - role: dcgm_exporter # GPU监控 vars: operation: "install" # 操作类型install/uninstall