From 1e3671ab76da657b0ef74508e6a5f5d9e4531d7a Mon Sep 17 00:00:00 2001 From: gjmzj Date: Sat, 30 Mar 2019 12:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddocker=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=97=B6=E7=89=88=E6=9C=AC=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/docker/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 2fa6088..dd1cdf6 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -29,7 +29,7 @@ - dockerd - docker-proxy tags: upgrade_docker, download_docker - when: "DOCKER_VER < 18.09" + when: "DOCKER_VER|float < 18.09" - name: 下载 docker 二进制文件(>= 18.09.x) copy: src={{ base_dir }}/bin/{{ item }} dest={{ bin_dir }}/{{ item }} mode=0755 @@ -43,7 +43,7 @@ - dockerd - docker-proxy tags: upgrade_docker, download_docker - when: "DOCKER_VER >= 18.09" + when: "DOCKER_VER|float >= 18.09" - name: docker命令自动补全 copy: src=docker dest=/etc/bash_completion.d/docker mode=0644