generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Description
SUMMARY
The community.docker.docker_swarm_service module currently does not provide an option equivalent to the --with-registry-auth flag available in the docker service create and docker service update CLI commands.
This flag is essential for Swarm environments pulling images from private registries. Without it, worker nodes fail to pull private images unless credentials are manually distributed or pre-logged in on every node, which defeats the purpose of declarative service deployment.
ISSUE TYPE
- Feature Idea
COMPONENT NAME
community.docker.docker_swarm_service
ADDITIONAL INFORMATION
Adding a boolean option like with_registry_auth: true would align the module’s capabilities with Docker CLI and community.docker.docker_stack, which already supports this parameter internally.
Example expected usage:
- name: Deploy a service with registry credentials
community.docker.docker_swarm_service:
name: my_service
image: registry.gitlab.com/proj/myimage:latest
state: present
with_registry_auth: truezetsub0