mirror of https://github.com/easzlab/kubeasz.git
fix 容器化运行kubeasz时清理脚本
parent
0d8c47d95c
commit
c4eabdeb0c
|
@ -58,10 +58,7 @@
|
|||
shell: 'docker ps|grep kubeasz || echo "NOT FOUND"'
|
||||
register: install_info
|
||||
|
||||
- name: fail info
|
||||
fail: msg="you CAN NOT delete dockerd, because container 'kubeasz' is running!"
|
||||
when: "'kubeasz' in install_info.stdout"
|
||||
|
||||
- block:
|
||||
- name: stop and disable docker service
|
||||
service:
|
||||
name: docker
|
||||
|
@ -86,6 +83,7 @@
|
|||
- "/etc/systemd/system/docker.service.d/"
|
||||
- "/etc/bash_completion.d/docker"
|
||||
- "/usr/bin/docker"
|
||||
when: "'kubeasz' not in install_info.stdout"
|
||||
when: CONTAINER_RUNTIME == 'docker'
|
||||
|
||||
- block:
|
||||
|
|
Loading…
Reference in New Issue