I was to happy, it does import to rundeck, but then the commands (that works in shell), when executed via rundec, looses double-quotes, and a JSON fails to create the dict *(**Expecting property name enclosed in double quotes)* https://groups.google.com/forum/#!topic/rundeck-discuss/NWQ7Y6sHq60
W dniu piątek, 18 grudnia 2015 12:59:44 UTC+1 użytkownik sirkubax napisał: > > Ok - I made it work in rundeck import > > http://symfony.com/doc/current/components/yaml/yaml_format.html > "Mappings use a colon followed by a space (: ) to mark each key/value > pair:" > > So I did some nasty change, removing the space in the JSON - it does not > look well, but it works: > -e '{ "versions": { "myapp": "0.1.2"} }' > *-e '{ "versions":{ "myapp":"0.1.2"} }'* > > The initial question is still open, if You would feel like finding a > solution. > > > W dniu piątek, 18 grudnia 2015 12:47:18 UTC+1 użytkownik sirkubax napisał: >> >> Is there any way to pass an extra_vars in a form of dict, not json? >> Like this: >> -e 'versions.myapp="0.1.2"' >> not like that: >> -e '{ "versions": { "myapp": "0.1.2"} }' >> >> Reason - while importing jobs into rundeck it does complain about >> >> Error: Failed request to load jobs: Jobs Document was invalid for format >> yaml: mapping values are not allowed here >> -e '{"versions"*:* {"promo >> ^ >> >> (or - can some escaping in rundeck while importing yaml files) >> > -- 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/9c05fa1f-2204-4050-ad48-f5523a6bd4fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
