Re: [ansible-project] Using json in docker environment variables

2014-08-20 Thread James Cammarata
Hi Seth, after looking into this, the best way to approach this would be to use the complex argument syntax as opposed to the key=value style you're using now: docker: image: "readytalk/tomcat-native:8.0.9" state: "running" env: CATALINA_OPTS: "-Dconfig.zookeepers=zoo

Re: [ansible-project] Using json in docker environment variables

2014-08-20 Thread James Cammarata
Hi Seth, looking into this now. On Wed, Aug 20, 2014 at 11:58 AM, Seth Goings wrote: > I noticed that a fix attempt for this recently went into the devel branch > thanks to help on the IRC channel. Thanks for pointing me in the right > direction, all! > > https://github.com/ansible/ansible/issu

Re: [ansible-project] Using json in docker environment variables

2014-08-20 Thread Seth Goings
I noticed that a fix attempt for this recently went into the devel branch thanks to help on the IRC channel. Thanks for pointing me in the right direction, all! https://github.com/ansible/ansible/issues/8661 However, I'm having a similar problem with the following snippet: - name: "Try to in

Re: [ansible-project] Using json in docker environment variables

2014-08-14 Thread Michael DeHaan
I think this is the problem in the module: env = dict(type='list'), If it were type='dict' we could do: docker: env: options: {"foo":"bar","baz":"qux"} other_arguments_here: 1234 And basically use full YAML, without any splitting magic. If someone would like to help test t

[ansible-project] Using json in docker environment variables

2014-08-14 Thread Dane Lipscombe
I use json to compact my docker environment variables, the problem is that the docker module parser splits on ',' character to signify a new key/value pair, meaning that more than one key doesn't work. eg docker: env='options={"foo":"bar"}' //ok docker: env='options={"foo":"bar","baz":"qux"}'