diff --git a/inventory/gpu_k8s_cluster b/inventory/gpu_k8s_cluster index 922dfe4..36e0b65 100644 --- a/inventory/gpu_k8s_cluster +++ b/inventory/gpu_k8s_cluster @@ -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 diff --git a/playbooks/demo_gpu_k8s.yml b/playbooks/gpu_k8s_init.yml similarity index 100% rename from playbooks/demo_gpu_k8s.yml rename to playbooks/gpu_k8s_init.yml diff --git a/playbooks/gpu_k8s_reset.yml b/playbooks/gpu_k8s_reset.yml new file mode 100644 index 0000000..43f8c50 --- /dev/null +++ b/playbooks/gpu_k8s_reset.yml @@ -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/