Add GPU K8s reset playbook, rename init file, update inventory

This commit is contained in:
Haitao Pan 2025-06-26 18:09:16 +08:00
parent 2788c80815
commit ce86876892
3 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[all]
k8s-1 ansible_host=43.207.228.137
k8s-2 ansible_host=57.182.251.106
k8s-3 ansible_host=18.179.59.49
k8s-1 ansible_host=13.158.69.227
k8s-2 ansible_host=57.183.6.87
k8s-3 ansible_host=43.207.133.165
[all:vars]
ansible_port=22

View File

@ -0,0 +1,13 @@
- hosts: all
become: true
vars:
# Use the inventory hostname for delegation so Ansible
# applies the correct connection variables
ops_host: "k8s-1"
masters:
- "k8s-1"
nodes:
- "k8s-2"
- "k8s-3"
roles:
- roles/vhosts/gpu-k8s-reset/