修复docker安装时版本判断条件

dev0
gjmzj 2019-03-30 12:29:41 +08:00
parent 00a556e6ee
commit 1e3671ab76
1 changed files with 2 additions and 2 deletions

View File

@ -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