Closed tdoan2010 closed 11 months ago
Seems like that is a limitation how package managers handle the install command and that ansibles package module doesn't upgrade packages, just makes sure any version of them is installed. See [tasks/main.yml#L19-L34) for reference. According to the package module documentations state
parameter at least with some package managers it is supported to set the state
to latest
to get the latest version of a package.
This ansible role would support this by setting the variable docker_packages_state
to latest
instead of the default present
. This could be added to the documentation of the role.
Update: Seems like it worked and upgraded my docker packages. Thinking about a few minutes more I'm not sure if the better way to handle this would be to implement package upgrades in general (e.g. using ansible) to make sure that all packages are up to date.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
Currently, the latest version of the Docker engine is
23.0.1
. But when I install Docker using this Ansible role, I only get20.10.8
.When I manually follow the instruction about how to install Docker on Ubuntu, I got the latest version.
Did I miss any configuration of this role? I suppose it always install the latest version of Docker, but it was not the case.