Hi,

I'm not sure this is possible at all.

docker_secret is a module for Docker's swarm mode. docker_container is
a module for Docker's non-swarm mode. If you use docker_swarm_service
to manage a Docker swarm service, you can specify the secrets to use.

I also cannot find any reference to secrets when looking at the `docker
run` help (which uses the same APIs as the docker_container module
does).

Cheers,
Felix




On Fri, 9 Apr 2021 06:10:54 -0700 (PDT)
ansiblehuhn <[email protected]> wrote:

> Hi,
> 
> is there a way I can use docker_secrets within docker_container?
> If this is not possible maybe someone could help me with this:
> I want to configure the initial admin-password of a container.
> Therefore I can use a mounted file in the container (for example
> docker secret) or an encrypted string (htpasswd) as a command
> argument. I only want to store the plain password in the ansible
> vault, not the encrypted version or an additional file on disk.
> 
> Thanks for your help :)
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20210411153759.5f054672%40rovaniemi.

Reply via email to