I also bumped into this, it is a rare corner-case when one tries to use double curly braces in a command... Which I was also trying with docker inspect, there are two better solutions for getting the data rather than executing a command:
1 - use the docker_containers variable which is automagically created on executing the docker module 2 - use the docker_facts module http://patg.net/ansible,docker/2014/07/10/ansible-docker-facts/ I prefer the second method because it'll let me find the right container more easily. Since I'm a curious person, I'd like to know if there's a way to escape the double curly braces... because none of these methods worked for me on ansible 1.9.1 -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/94f29181-2069-4950-9c14-a0edb2e6e0a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
