1 Star 0 Fork 13

崔云/k8s 高可用集群 ansible 剧本部署

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
k8s_kubeadm_kubelet_kubectl_remove.yaml 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
山河已无恙 提交于 2023-02-05 23:52 . init
# ansible 2.9.27
# # config file = /root/ansible/ansible.cfg
# # configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
# # ansible python module location = /usr/lib/python2.7/site-packages/ansible
# # executable location = /usr/bin/ansible
# # python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
#
# #@File : k8s_kubeadm_kubelet_kubectl_deploy.yaml
# #@Time : 2023/01/19 23:30:47
# #@Author : Li Ruilong
# #@Version : 1.0
# #@Desc : 卸载安装的环境
# #@Contact : liruilonger@gmail.com
---
- name: clear service
hosts: all
tasks:
# 停掉相关的服务
- name: stop clear service
service:
name: kubelet
state: stopped
service:
name: cri-dockerd
state: stopped
service:
name: containerd
state: stopped
service:
name: docker
state: stopped
# 卸载 kubeadm、kubelet 和 kubectl
- name: remover kubeadm、kubelet and kubectl
yum:
name:
- kubelet-1.25.1-0
- kubeadm-1.25.1-0
- docker-ce
- docker-ce-cli
- containerd.io
- cri-dockerd
state: absent
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cy-code/k8s_deploy_ansible.git
git@gitee.com:cy-code/k8s_deploy_ansible.git
cy-code
k8s_deploy_ansible
k8s 高可用集群 ansible 剧本部署
master

搜索帮助