ansible-dockerswarm icon indicating copy to clipboard operation
ansible-dockerswarm copied to clipboard

example for specifying docker-ce version

Open falkheiland opened this issue 3 years ago • 2 comments

suggest to add an example:

docker_package_version: "5:19.03.12~3-0~ubuntu-focal"
user@ubuntu2004:$ apt-cache madison docker-ce
 docker-ce | 5:20.10.5~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.4~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.3~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.2~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.1~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:20.10.0~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.15~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.14~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.13~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.12~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.11~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.10~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
 docker-ce | 5:19.03.9~3-0~ubuntu-focal | https://download.docker.com/linux/ubuntu focal/stable amd64 Packages

falkheiland avatar Mar 17 '21 14:03 falkheiland

Well I think the issue is that the version depends on the platform you are running this role, so examples for all supported versions should be added then. I think there's no need to add an example, just put the version you need according to the platform you are on like the package manager tool reports it as you put in your example.

juanluisbaptiste avatar May 20 '21 22:05 juanluisbaptiste

the example would / should be to show HOW the variable should be used in terms of constructing the version - not for specifying a certain version. I nedded some time to figure out how the version had to be used (and not which version), to get this to work - so this would maybe help other people too?

falkheiland avatar May 21 '21 05:05 falkheiland