First commit
This commit is contained in:
16
ansible/k3s/uninstall_k3s.yml
Normal file
16
ansible/k3s/uninstall_k3s.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: Desinstalar K3s en el Cluster
|
||||
hosts: k3s_cluster
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Desinstalar K3s en los nodos master
|
||||
shell: |
|
||||
/usr/local/bin/k3s-uninstall.sh
|
||||
when:
|
||||
- inventory_hostname in groups['k3s_master']
|
||||
|
||||
- name: Desinstalar K3s en los nodos workers
|
||||
shell: |
|
||||
/usr/local/bin/k3s-agent-uninstall.sh
|
||||
when:
|
||||
- inventory_hostname in groups['k3s_workers']
|
||||
Reference in New Issue
Block a user