fix: docker/containerd是否需要安装的判断条件

pull/1076/head
gjmzj 2021-09-24 19:48:58 +08:00
parent 27ba087b8a
commit 2769576aaa
2 changed files with 2 additions and 2 deletions

View File

@ -66,4 +66,4 @@
state: present
regexp: 'crictl completion'
line: 'source <(crictl completion)'
when: "'running' not in containerd_svc.stdout"
when: "'active' not in containerd_svc.stdout"

View File

@ -113,7 +113,7 @@
- name: 配置 docker 命令软链接
file: src={{ bin_dir }}/docker dest=/usr/bin/docker state=link
ignore_errors: true
when: "'running' not in containerd_svc.stdout and 'running' not in docker_svc.stdout"
when: "'active' not in containerd_svc.stdout and 'active' not in docker_svc.stdout"
## 可选 ------安装docker查询镜像 tag的小工具----
- name: 下载 docker-tag