LDAP string in Docker env

34 views
Skip to first unread message

Vincent Van der Kussen

unread,
Nov 20, 2014, 9:56:51 AM11/20/14
to ansible...@googlegroups.com
Hi,

I'm deploying a docker container where I pass an env variable in the
docker module. The problem is that the parser cuts of a part of the
value because it contains '=' signs.

this is the part from the playbook :

env="LDAP_BIND_DN="cn=user,dc=domain,dc=local"

when I look at the env var in the configuration file after the
container has started i see following value :

cn=user

I assume the parser cuts everything off after first comma following a '=' sign.

Is there any way to escape this?

Vincent

Tomasz Kontusz

unread,
Nov 20, 2014, 11:12:18 AM11/20/14
to ansible...@googlegroups.com
You can use complex args, or try to escape the quotation mark that's part of the value with \\

Vincent Van der Kussen <vincent.va...@gmail.com> napisał:

--
Wysłane za pomocą K-9 Mail.

Vincent Van der Kussen

unread,
Nov 23, 2014, 6:03:43 AM11/23/14
to ansible...@googlegroups.com
Complex args indeed fixed the issue.
thx.
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ae8bd83b-8267-4c2f-ad81-af2f4a24e0ea%40email.android.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages