Michael DeHaan <[email protected]> writes: > (This is really a question for ansible-devel list)
Thank you for pointing it out, I wasn’t sure about that. > > In the argument_spec of the module that defines the argument, just do > > type='dict' > > It will accept complex arguments as well as quoted key=value pairs. > > module_name: > foo: > x: 1 > y: "bar" > baz: "glorp" > > Is how complex args are passed > > Or > > module_name: 'foo="x=1 y=bar" baz="glorp"' > > This is exactly how the ec2 module in 1.4/1.5 processes and passes instance > tags, if you want to take a look. > > It also knows how to parse inline JSON, so it is very much a "do what you > mean" kind of input. Super. Thanks a lot. -- Giorgio Valoti -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
