You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this closed PR from 2021: #262, which introduced a way to hold the docker packages installed through this role. This would be very useful for my organization, which use this ansible role to install docker, but which do not want docker to be automatically upgraded (to avoid interrupting long-running jobs).
We are currently using the role like this:
- role: geerlingguy.docker
vars:
# We wish for docker to be present on the machine, but we don't want it to be upgraded, since that can disturb
# important ongoing work on the machines. Therefore, we set this docker_packages_state field to "present", as
# opposed to the default value of "latest".
docker_packages_state: present
# We also need to make sure that the docker service is NOT restarted in case anything is updated after all, so
# we set the docker_restart_handler_state field to "reloaded" as opposed to the default value of "restarted".
# This will make it so that any running containers are not disturbed by a restart. The new version would then
# instead be picked up when the machine is restarted.
docker_restart_handler_state: reloaded
which I believe makes the role behave in such a way that it doesn't upgrade docker if it is present.
However, we also have this task elsewhere in our ansible setup:
- name: Upgrading all packages (Ubuntu/Debian)
apt:
upgrade: dist
Thank you for this role!
I found this closed PR from 2021: #262, which introduced a way to hold the docker packages installed through this role. This would be very useful for my organization, which use this ansible role to install docker, but which do not want docker to be automatically upgraded (to avoid interrupting long-running jobs).
We are currently using the role like this:
which I believe makes the role behave in such a way that it doesn't upgrade docker if it is present.
However, we also have this task elsewhere in our ansible setup:
which leads to docker being upgraded after all.
We could add our own task to hold the docker packages, and manually list the packages that this role installs (ref https://github.com/geerlingguy/ansible-role-docker/blob/master/defaults/main.yml#L5-L9), but then we would need to keep that manually in sync.
The text was updated successfully, but these errors were encountered: