From ab31b12ffb8ee5d4d0343e88e5bab04d6941da7f Mon Sep 17 00:00:00 2001 From: gjmzj Date: Tue, 11 Jun 2019 15:55:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20docker=E4=B8=8Econtainerd=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/containerd/tasks/main.yml | 2 +- roles/docker/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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