diff --git a/roles/containerd/tasks/main.yml b/roles/containerd/tasks/main.yml index e96f2e1..ad6e7ec 100644 --- a/roles/containerd/tasks/main.yml +++ b/roles/containerd/tasks/main.yml @@ -1,5 +1,5 @@ - name: 获取是否已经安装docker - shell: 'systemctl status docker|grep Active' + shell: 'systemctl status docker|grep Active || echo "NOT FOUND"' register: docker_status - name: fail info1 diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 0be6be5..dd361d9 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -1,5 +1,5 @@ - name: 获取是否已经安装containerd - shell: 'systemctl status containerd|grep Active' + shell: 'systemctl status containerd|grep Active || echo "NOT FOUND"' register: containerd_status - name: fail info1