-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support config rotate for docker_config #109
Comments
One option would be to enahance docker_config with an option that allows it to:
docker_config could also have a This would make stack deployments idempotent IMO. |
A somewhat related issue is #21. |
I have found a workaround that seems to work ok for now:
Does not work with docker_swarm_stack since it can't accept jinja interpolation in config name.
|
SUMMARY
I would like to be able to change a configuration of a docker service/stack that I deploy via ansible.
The functionality is described here https://docs.docker.com/engine/swarm/configs/#example-rotate-a-config .
Right now the docker_config fails to update since a service is using it.
Docker supports create + rm, not update.
Hence,
ISSUE TYPE
COMPONENT NAME
docker_config
ADDITIONAL INFORMATION
Using a playbook like bellow, if I update the config content and run the playbook, it will fail because it tries to update the config (by removing and adding it again).
Removing fails because the configuration is used by the service.
The text was updated successfully, but these errors were encountered: