I'm porting a module from ansible 1.9 to 2.x, and the args file content seems.. odd? After the shlex simple strings are fine but lists and dictionaries look like over-escaped garbage. An example:
my call:
test: "packages={{test.var}}"
and test.var is a list of packages, ['one', 'two', 'three', 'foo']
ansible 1.9 args content:
packages=['one', 'two', 'three', 'foo']
ansible 2.3 args content:
packages='[u'"'"'one'"'"', u'"'"'two'"'"', u'"'"'three'"'"', u'"'"'foo'"'"']'"'"]'"'"]'"'"]'
My question: "is there a way to unserialize this args data elegantly or simply?" I can strip out the offending escapes and quotes but that's gross and brittle. I didn't find anything in the porting guide that seemed relevant.